Viewing 15 posts - 2,011 through 2,025 (of 2,487 total)
You could use the SQL functions to provide default values for the username and datetime.
Isn't the data being imported into the same table each time and therefore only requiring one...
--------------------
Colt 45 - the original point and click interface ![]()
October 21, 2003 at 5:02 pm
So there's no relationship between the header and detail other than the IDENTITY?
Maybe you can add the current user and datetime to the tables. You can use a format file...
--------------------
Colt 45 - the original point and click interface ![]()
October 20, 2003 at 6:31 pm
There's not much in the way of practical use of Lookups. Generally, data is imported into a staging table and fields updated as appropriate using a stored procedure. This is...
--------------------
Colt 45 - the original point and click interface ![]()
October 20, 2003 at 6:23 pm
First thing I'd do is drop all that scripting.
Create two staging tables, one for your AS400 data, one for your NT data.
1) Import your data using a Datapump task...
--------------------
Colt 45 - the original point and click interface ![]()
October 20, 2003 at 6:18 pm
How about BCP'ing the data into a table with a single field. Then insert the resulting data into your destination table.
You might use a cursor to scroll through the...
--------------------
Colt 45 - the original point and click interface ![]()
October 20, 2003 at 6:09 pm
Try putting the last line of the original file into the new file.
Hope this helps
Phill Carter
--------------------
Colt 45 - the original point and click interface ![]()
--------------------
Colt 45 - the original point and click interface ![]()
October 19, 2003 at 5:32 pm
Sounds like some sort of logging file created by the third-party. How about renaming the file and creating an empty file with the same name?
Hope this helps
Phill Carter
--------------------
Colt 45 -...
--------------------
Colt 45 - the original point and click interface ![]()
October 16, 2003 at 5:50 pm
I use the following script to find single items. You could possibly wrap this in a select from sysobjects and syscolumns to generate some sort of cross reference. Of course...
--------------------
Colt 45 - the original point and click interface ![]()
October 16, 2003 at 5:46 pm
Can you post your procedure code?
Two things you might want to check,
1) Do you have a RETURN statement? If so, try removing it.
2) Change your temp table into a normal...
--------------------
Colt 45 - the original point and click interface ![]()
October 16, 2003 at 5:41 pm
I'd suggest holding the phone till you evaluate SQL Reporting Services. Beta2 looks impressive. The range of output and delivery options is great, and you can roll you own. It's...
--------------------
Colt 45 - the original point and click interface ![]()
October 16, 2003 at 5:36 pm
Running ActiveX Script while importing significantly slows down the import process.
One solution would be to import the file into a single field and then use some stored procedures to wash...
--------------------
Colt 45 - the original point and click interface ![]()
October 16, 2003 at 5:30 pm
Yes, I'd still use staging tables. Instead of using @@IDENTITY use SCOPE_IDENTITY(). Check BOL, @@IDENTITY returns the last identity created across any scope in the current session, SCOPE_IDENTITY() relates only...
--------------------
Colt 45 - the original point and click interface ![]()
October 16, 2003 at 5:25 pm
Lookups in DTS are often used to add, or replace, data to the import process.
For example, you get a list of products with new prices.
The source data has,
ProductName, NewPrice
Your...
--------------------
Colt 45 - the original point and click interface ![]()
October 16, 2003 at 5:18 pm
How are you viewing the resultsets?
If you're using ADO, you'll need to use the NextRecordset method.
Hope this helps
Phill Carter
--------------------
Colt 45 - the original point and click interface ![]()
--------------------
Colt 45 - the original point and click interface ![]()
October 15, 2003 at 7:50 pm
Try this,
use pubs
go
CREATE PROCEDURE au_info
@lastname varchar(40) = NULL
, @firstname varchar(20) = NULL
AS
SELECT au_lname, au_fname
FROM authors
WHERE (au_lname = @lastname or au_fname = @firstname)
go
EXECUTE au_info @lastname...
--------------------
Colt 45 - the original point and click interface ![]()
October 15, 2003 at 5:40 pm
Viewing 15 posts - 2,011 through 2,025 (of 2,487 total)