I need pass cat in each statement
update tbl1 Set num=1 where id in
(select top 1 from tbl1 where cat='A')
update tbl1 Set num=1 where id in
(select top 1 from tbl1 where cat='B')
update tbl1 Set num=1 where id in
(select top 1 from tbl1 where cat='C')
Hi,
I have a table that has id,cat & num fields.
Each cat has multiple ids, Num is 0
I need to create sp that will pick top 1 in each category and update field Num to 1.
id cat num
-- --- ---
1 A 0
2 A 0
7 B 0
6 B 0
2 C 0
7 C 0
Regards,
Mark
Hi,
I can choose multiple rows from drop down list and get value into the query.
select * from table where StateID in (1,15,17).
Also I need to pick the State Name in the same sequence: "You choose ALABAMA,INDIANA,KANSAS states."
Can I get the value of ID?
<select name=Date2 multiple>...
Thanks jhall01,
The problem still exist.
The DTS package was created locally under my id and I have all rights as administrator.
DTSStep_DTSDataPumpTask_1, Error = -2147467259 (80004005)
Error string: Error opening datafile: Access is denied.
Error Detail Records: Error:5...
Hello,
I've got the same problem. The DTS successfully execute from 'Data Transformation Services', but when DTS schedule to run in SQL Server Agent it gives the same error as above.
DTSRun: Loading... DTSRun: Executing... DTSRun OnStart: DTSStep_DTSDataPumpTask_1 DTSRun OnError...
did I do something wrong? I place this code into Visual Basic ActiveX Script.
Error:Microsoft VBScript Compilation error
Error Description: Expected Identifier
-------------------------------------------------------
Dim, FSO, fileloc, file
set fso = CreateObject("Scripting.FileSystemObject")...
Hi,
Everyday I need to create (or update) excel file (name.xls)
that will contain fresh data from sql server db.
When I try to run DTS second time it tells me that this file exist. How to delete existing file from the folder using same DTS?
Thanks,
Mark
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.