Viewing 15 posts - 76 through 90 (of 172 total)
What is the alternative if you are calling the package from a stored procedure?
I use this method becuase you can pass in the variables @@servername and db_name() to the...
December 5, 2002 at 7:24 am
Nice article - well explained. I use this method to dynamically assign server / database name for a database connection when transferring data from a text file to a database...
December 5, 2002 at 4:48 am
I ran a test on a simple table with 1 datetime column containing 5 million records. Both queries ran at less than 1 second (using a table scan - no...
December 5, 2002 at 4:06 am
Do you have an index on your birthday column?
Regards,
Andy Jones
December 4, 2002 at 9:13 am
Joins are to return data from 2 or more related tables e.g.
select * from customers c inner join orders o on c.id=o.id
Union is to return multiple result sets of the...
December 4, 2002 at 8:07 am
"db2 is the same database as db1, with one difference: it is the restored backup of db1
". If this is the case all settings should be the same. In a...
December 4, 2002 at 7:47 am
Hi, this will give all tables with an identity column: -
select distinct o.name
from sysobjects o
inner join syscolumns c on o.id = c.id
where
o.xtype = 'U'
and c.status = 0x80
Regards,
Andy...
December 3, 2002 at 9:35 am
Hi,
Where do you want right aligned data - on a report, on screen? The above approach will only work if you are using a proportional font.
Regards,
Andy Jones
December 3, 2002 at 1:43 am
Hi, see the post of Klaas-Jan above to get you started.
Regards,
Andy Jones
December 2, 2002 at 9:43 am
Hi, I think this will work:-
declare @test-2 int
set @test-2 = 1
select top 10 * from table
where field between
case @test-2
when 1 then 1
when 2...
December 2, 2002 at 9:41 am
For the performance of the report I think the stored procedure method oultined above is the best solution. If you create a view and then
filter it you will be grouping...
December 2, 2002 at 7:51 am
If you are using a unique index (not a unique constraint) you can check the 'ignore duplicate key' check box on the indexes tab of the table properties in enterprise...
December 2, 2002 at 4:03 am
Alternatively you can assign global variables of a DTS package via the dtsrun command line utility.
Regards,
Andy Jones
November 21, 2002 at 2:00 am
Hi,
You can create global variables within the DTS package for source and destination. Then you call the package from a stored procedure using the dtsrun command line utility (via...
November 21, 2002 at 1:55 am
Good point about using a UDF. With regard to using BCP, my original requirement used files which didn't have a consistent number of fields on each line e.g.: -
1,2
1,2,3
1
etc...
I couldn't...
November 11, 2002 at 3:11 am
Viewing 15 posts - 76 through 90 (of 172 total)