Viewing 15 posts - 16 through 30 (of 33 total)
Thanks. I solve the problem by using regular sp.
Declare
@CNT int
DECLARE autorun_cursor CURSOR FOR select...
July 5, 2007 at 1:50 pm
I did exec msdb..sp_start_job @job_name='ABC' but ActiveX script does not like it. Only I can run this code in transact-SQL script.
I have code:
SQL= "select count(*)CNT from...
July 5, 2007 at 12:01 pm
Thanks. But its import data between dbs.
How to import data from table to local C: drive in csv format?
May 24, 2007 at 1:26 pm
I use it a lot to execute multiple sps from 1 click
CREATE PROCEDURE D
@DTE datetime,
@ID varchar(6)
AS
execute A @DTE,@ID
execute B @DTE,@ID
execute C @DTE,@ID
April 20, 2007 at 8:01 am
Select distinct Track_no, duplicate * From duplicate does not work.
Select * from T1 where Track_no in (select Track_no from T1 group by Track_no having count(*)=1)
April 17, 2007 at 8:07 am
select ID from Emp1 where ID not in (select ID from Emp2) UNION select ID from Emp2 where ID not in (select ID from Emp1)
April 17, 2007 at 8:02 am
select * from (select top 1 * from AAA where loaded_unloaded ='U' order by scale_dt desc)A
UNION
select * from (select top 1 * from AAA...
April 3, 2007 at 12:58 pm
select * from (select top 1 * from AAA where loaded_unloaded ='U' order by scale_dt desc)A
UNION
select * from (select top 1 * from AAA where loaded_unloaded ='L' order by scale_dt...
April 3, 2007 at 12:55 pm
Link Oracle db to the link servers in SQL 2K2 and use openrowset function.
select into [tableSQL2k5] from openrowset(ORACLE_DB, select * from
);
April 3, 2007 at 7:36 am
It can be done from the view or table.
Open excel>data>import external data>import data>new sourse>login to the server and choose from views or tables.
April 3, 2007 at 7:29 am
May be it will help!
USE pubs
GO
DECLARE @title_ids varchar(8000), @delimiter char
SET @delimiter = ','
SELECT @title_ids = COALESCE(@title_ids + @delimiter, '') + title_id FROM titles
SELECT @title_ids AS [List of Title IDs]
March 30, 2007 at 2:07 pm
Would not be easy to cheating union operator?
select * from (select * from Table_A where loaded_unloaded ='U' order by scale_dt desc)A
UNION
select * from...
March 30, 2007 at 12:43 pm
Viewing 15 posts - 16 through 30 (of 33 total)