all groups > sql server dts > december 2003 > threads for december 15 - 21, 2003
Filter by week: 1 2 3 4 5
Select from three tables into One flat file
Posted by Vijay at 12/21/2003 7:38:54 PM
Hi all,
How can I have the result set of three different
tables into one flat file.
1)Simple select statements from three tables
2)Fixed field data
3)Variable flat file name, eg: batch20031221.txt
Thanks for your time and energy
Vijay... more >>
Import date field to table
Posted by John at 12/21/2003 7:03:28 PM
Dear,
I want to capture a date field from CSV file to the table
(the CSV file have one date field only). But the table data
(another field) import from another CSV file. How can i
import the data field from CSV file and fit in the table?
Many Thanks
John ... more >>
Need help :(
Posted by Stan Sainte-Rose at 12/21/2003 3:03:14 PM
Sorry for reposting a similar message but I really need help.
I have a query that looks like that :
SELECT DISTINCT
A_CLIENTS.idclient,
A_CLIENTS.CLICODE,
A_CLIENTS.CLIEMAIL,
FROM A_CLIENTS
WHERE A_CLIENTS.IDSOCIETE=@idsociete
AND TT.LOGDATE<@ddate
I would like to generate a xls file ... more >>
Dts Variables (Newbie question)
Posted by Stan Sainte-Rose at 12/21/2003 7:02:44 AM
Hi,
How to pass variables into a dts and run the dts from a stored procedure ?
I want to pass 2 variables to a DTS,
one is a CodeID and the other is a filePath
And of course, I want to change the current filepath with the new that I
send.
Thanks for your precious help
Stan
... more >>
can you shrink the database in the middle of a transaction
Posted by JJ Wang at 12/20/2003 11:35:07 PM
Hi,
I have a huge DTS packege running right now, it's
inserting 400 million rows into a table that have a
clustered index and a non-clustered index on it. It has
been runing for 54 hrs now and the tranlog has grown to
over 160 gig.
I bet there is a lot of inactive tran-log by now. Is... more >>
DTS wizard - can't import from access database
Posted by =Snappy= at 12/20/2003 12:03:04 PM
first of all, if i use the Data Sources (ODBC) administrative tool to set up
a User DSN, one of the type/driver options is 'Microsoft Access Driver'.
i'm pretty sure that's the option i want to use! however, when i start the
DTS wizard, 'Microsoft Access Driver' (at least the English version!) i... more >>
proper way to dts 400 million record table?
Posted by JJ Wang at 12/20/2003 12:00:59 PM
Hi,
we have a table 'tableA' in 'databaseA' that has 400
million rows and 60 gig big, without any index on it.
We need to build a cluster index on tableA, and a non-
clustered index on 2 of its columns.
Hence we created tableB which is identical to tableA only
tableB will with index bu... more >>
Refresh excel spreadsheet from sqlserver
Posted by prathi at 12/19/2003 3:56:10 PM
Hi,
I am trying to refresh an excel spreadsheet from sqlserver.
1. I have setup the excel spreadsheet with external data source to the sqlserver.
2. I have an active x task as follows
'**********************************************************************
' Visual Basic ActiveX Script
'**... more >>
Don't see what you're looking for? Search DevelopmentNow.com.
ActiveX Script Trying to Call Stored Procedure and Return Output Parameters
Posted by Scott Lindsey at 12/19/2003 11:19:49 AM
I have a developer that is trying to write an ActiveX
script step inside a DTS package that calls a stored
procedure which executes an UPDATE statement. After the
update statement runs a select is executed to populate the
output parameters of the stored procedure. The output
parameters d... more >>
DTS Export into variable Filename...
Posted by Mirco Kaffsach at 12/19/2003 10:40:51 AM
Hi @all,
I've got an DTS Package that exports data from a table into a file.
This Packege runs every day, so I want to make the name of the file variable
like that: BackUp_20031219.txt
The first part of the filename ist fixed and at the end I want to connect
the actual date.
How can I real... more >>
Access Front End to SQL Server Agent
Posted by spencer NO[at]SPAM tabbert.net at 12/19/2003 10:13:55 AM
Has anyone built a simple interface to monitor and run SQL Agent Jobs
from Microsoft Access? I have built several SQL Agent jobs and would
like the ability for operations to be able to easily kick these jobs
off if needed and monitor if they succeeded or not.
Spencer Tabbert... more >>
DTSRUN never stopps
Posted by Frank Matthiesen at 12/19/2003 9:53:50 AM
Hi NG,
i got two sql-servers (differents between them: german and engl. OS)
On both servers i got identical dts-packages. The last step in some packages
is an activextask.
The packages are started by night with the dtsrun-command from a job by
sqlserver-agent.
On the german os anything works... more >>
Exporting Tables and Data to CD
Posted by Gary August at 12/19/2003 5:53:29 AM
I am running SQL Server 2000 Developer edition ver 0120.1
July 2003 on a stand alone PC, not connected to a server
or network. I have created a number of tables in a new
database. I need to export the table definitions and the
data in them so that I can install them on another machine
runn... more >>
SQL 2000 DTS Variables Question
Posted by Kirk at 12/19/2003 5:26:17 AM
I am new to DTS and I am trying to figure out how to do something
I have written a routine that connects a local SQL server to a remote SQL server and does some data exchanges. The problem is that there are 40 remote servers that I need to connect to all with different passwords. In addition, the ... more >>
Data Pump Task - Count
Posted by Sanka at 12/19/2003 4:45:31 AM
I have a DTS package with data pump task. After the end of
the task I need to report the amount of rows copied.
Can any one advise the ways to achieve it?
Cheers,
Sanka
... more >>
DTS CREATE TABLE dynamically
Posted by DJJ at 12/19/2003 4:06:24 AM
Howdy all,
I'm trying to use DTS to output the results from a
dynamically generated query into Excel and email the
resultant .xls file directly to the requesting user (the
users will be able to choose from a list of 'Reports' and
supply values to be used in the WHERE clause). I've
gott... more >>
DTS package is kicking me out from the designer
Posted by Venkata Srinivasa Rao at 12/19/2003 4:01:05 AM
i have a table called customer. I am trying to export the data in the table to text file. In DTS designer i have selected the server and text file and i have filled all required data. In transform task, in destination tab, clicked on define column button. its showed the columns in the table. clicked... more >>
Executing a DTS from VB6 ( SP5 )
Posted by Peter Newman at 12/19/2003 12:58:53 AM
I have a DTS that updates 2 tables from a VB6 application
or from text files stored on the server . I am executing
the DTS from a Visual Basic project using the code below
Dim oPkg As New DTS.Package
oPkg.LoadFromSQLServer ServerName:="ServerName",
ServerUserName:="UserName",
ServerPa... more >>
Getting DTS task titles from ASP
Posted by Park Hye Yion at 12/18/2003 11:31:05 PM
We have two separated machines, one for MS SQL Server and another for web server. The problem is that I wrote an asp file to read DTS task titles on the web server which doesn't have SQL Server installed. However, because of absence of SQL Server, my ASP couldn't use certain components such as Ser... more >>
Error during database transfer
Posted by Clint at 12/18/2003 4:25:30 PM
I currently have a product server and a development
server, Once a week we transfer the production database to
the development database.
To do this we use a DTS package that uses the Copy SQL
server objects task.
This works but the job in sql is always flagged as failed.
After looking ... more >>
Access Violation/MMC.EXE failure
Posted by BobW at 12/18/2003 3:16:05 PM
Could any of you folks please tell me how I can get the hotfix mentioned in KB814113? I tried going thru 'Contact Microsoft' and although I have the license number for my client's SQL Server 2K package, I don't have the foggiest on where to find the PID......the contact form conveniently left off SS... more >>
Copy DTS Packages from One server to another
Posted by Bob Smith at 12/18/2003 11:15:24 AM
I need to copy the actual package and not the data.
... more >>
OLEDB Connection to Sybase..help!!!!!
Posted by Mohan at 12/18/2003 10:23:57 AM
Hi,
Am trying to create an OLEDB connection to a Sybase
symposium server (ASE 11X), I installed the sybase client
on my machine and am connected to the sql server via
enterprise manager. I have a DTS package on the Server
that needs to get some data in from the sybase server.
I tried c... more >>
Create Excel File via VB.NET / DTS
Posted by alexander_simons NO[at]SPAM web.de at 12/18/2003 10:16:15 AM
Hi folks,
I'm pretty new in DTS (actually it's my first DTS project at all) and
thank you guys for every hint/help in advance.
I'm using VB.NET and MS SQL Server 2000
I need to do the following:
- Read data from SQL-Server and convert it to an excel file
- the SQL-Source-statement is differe... more >>
Declare global variable for uniqueidentifier
Posted by Jeffrey at 12/18/2003 10:16:05 AM
I want to declare a global variable for uniqueidentifier type, which type I should choose for the variable? String doesn't work
Thanks.... more >>
Copy SQL Server Object Error encountered.
Posted by Scott at 12/18/2003 9:27:59 AM
I am copying a subset of data from our production
warehouse to a test bed warehouse. I am using Execute
Package Tasks in which I place a Copy SQL Server Object
Task. This task copies a single table's data replacing
the existing data in the test bed table. I also include
logging features... more >>
Executing a Task from a Task??? (same package)
Posted by barryjarcher NO[at]SPAM hotmail.com at 12/18/2003 4:25:24 AM
I need a Package that loops through a recordset containing tablenames
that have to be transferred to another server.
I've so far created a task that returns the table names to a
globalvariable, a task that loops through the variable setting a
"createtable if not exists.." on a SQLTask and then... more >>
Unspecified error
Posted by SUNNY at 12/18/2003 3:23:07 AM
HI,
I am loading a A SQL TABLE I am getting the following
error any IDEAS?
Step 'DTSStep_DTSDataPumpTask_1' failed
Step Error Source: Microsoft OLE DB Provider for SQL Server
Step Error Description:Unspecified error
Thanks in advance
SUNNY... more >>
oracle sql to sequel server sql
Posted by mf at 12/18/2003 3:19:11 AM
could anybody translate this oracle specific sql
statement to sequel server specific sql. pleassssse
substr(enquirydetails,instr(enquirydetails,'Form Name:')
+11,instr(enquirydetails,chr(10)) - (instr
(enquirydetails,'Form Name:')+11))
thank you... more >>
New to DTS - Scheduled job running Batch File
Posted by danielcoates NO[at]SPAM yahoo.com at 12/18/2003 1:34:29 AM
Please help...
On our production server, I have a DTS package which executes an exe
which calls a batch file that invokes an osql session and runs a query
(MS blocking script logger).
When i run the dts package from my workstation, it creates the dos
session on my machine... but when the pa... more >>
"Record Is Deleted"
Posted by Sunny at 12/18/2003 1:28:06 AM
Hi
I have a access database I am picking up values from
access and putting them in SQL SERVER , It doesnt populate
it Gives a error saying "Record Is Deleted"
Thanks in Advance
Sunny... more >>
BULK INSERT limit on number of columns
Posted by Dave Merrill at 12/18/2003 12:48:20 AM
Does anyone know if there's a hard limit to the number of columns you can
import with BULK INSERT? Maybe 255? Any change between SQL 7 and current?
Trying for 335, I get an error with what I believe is a correct fmt file;
says "invalid column number", but doesn't say which.
Thanks,
D
... more >>
Calling a DTS pkg from a DTS pkg
Posted by Donald Pickering at 12/17/2003 9:01:45 PM
Each time I try to call another pkg the process fails.
I am using the following logic to call the next pkg.
' ============= Call another DTS pkg ==============
const DTSSQLStgFlag_UseTrustedConnection = 256
' == Call the pkg which will read each file and process it.
Set oPkg = Creat... more >>
hourly transfer from sql servers to main sql server
Posted by amadeo at 12/17/2003 7:34:50 PM
I am executing a DTS package every hour but I do not know
if there is a better way of doing, the ms sql are in the
factory floor they only hold for a week, so i need to send
all the data to the main sql, i think the dts sends the
whole database every time, Is that right? How can I send
the... more >>
PrecedenceBasis Property
Posted by Casualinfoguy at 12/17/2003 7:16:18 PM
Can anyone explain what PrecedenceBasis Property is? and please, explain it like I'm 4 yrs old. Thanks.
Cheers,
GMG... more >>
parameterized query
Posted by Jeffrey at 12/17/2003 2:31:25 PM
In Execute SQL task, before the parameterized query, can I define some variable?
For example,
Declare @v1 uniqueidentifier
Declare @v2 uniqueidentifier
select @v1 = col1,
@v2 = col2
from table_name
where id = ?
.......(the left)
This can not be parsed in the Execute SQL task. What kin... more >>
Jumping all over the place
Posted by Casualinfoguy at 12/17/2003 1:31:07 PM
Does anyone know how to set the next task in the pre-task-execute VBScript? That is, assume task1....task5. In task1, I check for a condition -- if that condition is TRUE, the next task should be task3, if it's false, the next task is task5. Does anyone know how to do that? Any help you could offer ... more >>
set connection properties dynamically
Posted by Jeffrey at 12/17/2003 1:16:15 PM
In the DTS package I am currently working on, I have to create 3 connections, but their
properties (including server, login, password) have to be decided during run time. What
options do I have to implement such a feature? Do I have to do it programmatically?
Another questions is that I have ... more >>
global variables and DTS
Posted by Rocco Pasca at 12/17/2003 12:53:44 PM
Thanks Darren.
I found in your mail much more than I found from myself ......
My problem is that I have a SELECT on an OLEDB connection to DB" and I want
to write the selected records in sqlServer. I'd like to take only record
with a PK beyond the last PK I wrote previously without selecting all... more >>
import data from XL sheet
Posted by talsah at 12/17/2003 12:30:04 PM
Hi all,
i am very new to sql server. my question would be very
silly pls bear with it.
how can i import data from an XL to a table.... more >>
automatically pick up the most recent version
Posted by Quentin Ran at 12/17/2003 9:16:19 AM
Hi group,
using dtsrun utility to run a structured storage file, how can one pick up
the most recent version without specify the package_version_guid_string?
Thanks for your response
Quentin
... more >>
Using Global variable rowset in T-SQL
Posted by Spud_Monkey at 12/17/2003 8:58:22 AM
I am assigning the results from a query into a global variable rowset and
then running another package and passing that rowset over.
Can I in the called package use the rowset within a Execute SQL Task rather
than having to loop through it programatically in an ActiveX.
Cheers
... more >>
Yukon Beta
Posted by Spud_Monkey at 12/17/2003 8:52:04 AM
Can anyone point me in the direction to where I can get a copy of Yukon Beta
to test/play with
Cheers
... more >>
Data Overflow
Posted by Cathy Emmons at 12/17/2003 7:04:37 AM
I keep getting the error
The number of failing rows exceeds the maximum specified
Insert error, column 53('DateX', DB_TYPE_DBTIMESTAMP),
status 6: Data overflow. Invalid character value for cast
specification.
I have the following code in my VB script to capture
invalid dates but it's ... more >>
OSQL - How to calculate the length of each column in the output file?
Posted by LC at 12/17/2003 5:34:33 AM
Hi,
I would like to use OSQL command to spool the output of a
query to a text file. However, the length of the column
in the text file is not same as the table column length
declared. As I need to process the output file again , I
would like to know exactly the start and the end position ... more >>
ExecuteSQLTask - Using the GO statement
Posted by Peter Newman at 12/17/2003 5:17:39 AM
I have a DTS using an execute SQL Task which is importing
data into two tables linked by field 1, From previous
help, i thought it best to create a trigger on one table
and then drop the trigger after the command has
completed, rather than having 2 different SQL tasks
ExecuteSQL Task is... more >>
Calling dts package from another package
Posted by Arthur.Nyunt NO[at]SPAM kellogg.com at 12/17/2003 2:26:53 AM
Hi everyone,
I have written a sp which calls a dts package which I have tested and
works. I would like to schedule this sp so have put it in a dts
package to call a second package.
If the second package executes sql it works fine but if the second
package is used to import data from a tex... more >>
set schedule for Data Transfer from AS/400
Posted by Kwong at 12/16/2003 7:54:21 PM
I want to set schedule for data transfer from IBM AS/400
daily.Please show me the steps. Thank you.... more >>
inserting rows which donot violate PK constraints
Posted by haode at 12/16/2003 6:02:27 PM
The data source file(CSV) is a 3-line text file.
when the file has a row which violates PK_constraints, none of 3 rows is
inserted.
I want other two rows to be inserted.
How can I do that?
TIA.
Error:
Step Copy Data export to [Weather].[dbo].[tblWeather]
Failure reported while processing... more >>
Sybase to Sql
Posted by Khan Imran at 12/16/2003 5:14:06 PM
Hi,
We have data in a sybase which I need to export into SQL Server 2000. I have
never worked with sybase and don't have any idea how to do this. The
database is on another server on the network... How do I go about it???
Please Help...
Thanks
Khan Imran
... more >>
global variables and DTS
Posted by Rocco Pasca at 12/16/2003 4:45:38 PM
I have a problem with a DTS.
I'd like to use a global variable in query (where clause) of a
transformation task (source side).
SELECT * FROM AUTHORS WHERE STATE = global_variable
Any help?
Thanks,
Rocco
... more >>
Database name parameter
Posted by Stijn Verrept at 12/16/2003 4:01:46 PM
I now have this code in Delphi:
{ Create the Ole object.}
OlePack := CreateOleObject('DTS.Package');
{ Load the package.}
OlePack.LoadFromStorageFile('c:\dossier\MedImportHyr.dts', '');
OleTask := OlePack.Tasks.Item(1);
OleCust := OleTask.CustomTask;
OlePack.Exec... more >>
Send Mail Task
Posted by Mary at 12/16/2003 12:25:19 PM
I want to be emailed on the success or failure of a DTS
package. I have sent up a Send Mail Task at the end of
everything which emails me on success. That works fine.
At first I thought I could just set up a Send Mail Task at
the end so if the job failed I would get an email. But
then ... more >>
DDQ and steps....
Posted by Casualinfoguy at 12/16/2003 10:21:16 AM
Can you, using a DDQ, execute a given task in a package multiple times? I know that a DDQ allows you to perform *something* dependent on the value of a given field in the DDQ's query rowset, but I don't know if that includes TASKS. Help!... more >>
Alternative to DTS
Posted by martin NO[at]SPAM capodici.com at 12/16/2003 9:04:57 AM
Hi
Does anyone know of a good third party alternative to DTS?
I use DTS to do a straight copy of data SQL Server and Oracle
(occasionally Sybase 5 or 7). I often find that DTS throws up errors
during these transfers, and they can often be overcome by doing some
of the transfer using the Or... more >>
Import Excel file to SQL Server
Posted by mike at 12/16/2003 8:01:58 AM
Hi, When I import an Excel file using the DTS Wizard all
text columns are automatically set to the 'nvarchar'
datatype, is there are any way to change that to 'varchar'
without going through every column(have the DTS Wizard set
all text columns to 'varchar', is what I want)?
Thanks!... more >>
Enter Data for DTS Package at start?
Posted by BEE at 12/16/2003 6:54:18 AM
I would like to automate my DTS package further. I would
like to be able to enter one paramter that would be used
by all the package elements (I'm assuming this would be a
global variable?). The package elements are mostly sql
type. I want the parameter data to be affect table names
for... more >>
Reading data from multiple files into one SQL Server table
Posted by Bachi at 12/15/2003 11:16:08 PM
Hi,
I have one requirement something like this. I have 13 dat files at one location. Need to copy the data from those 13 files into one SQL Server table at one time. I am planning to use DTS. But how to configure DTS package to get the data from those 13 files at a time and insert into one SQL Ser... more >>
INSTALL MICROSOFT ANALYSIS SERVICES
Posted by Ravi at 12/15/2003 11:03:19 PM
Hi
I know this highly improbably but by any chance is
MICROSOFT ANALYSIS SERVICES available of free download on
the net?
Ravi ... more >>
Read GlobalVariable from package started from my code (C# .NET)
Posted by Mrozik at 12/15/2003 3:27:38 PM
I have my custom task - and inside my class code:
public void Execute(object pPackage, object pPackageEvents, object
pPackageLog, ref Microsoft.SQLServer.DTSPkg80.DTSTaskExecResult
pTaskResult)
{
PackageLog packageLog = (PackageLog) pPackageLog;
Package2 package = (Package2) pPackag... more >>
"Login not found" error when trying to execute a DTS package of a database
Posted by Jeff Wright at 12/15/2003 2:44:19 PM
Trying to DTS a database from one server to another and
received the above error during the loading phase with
the failing username. Can't seem to DTS the database
over.
Thoughts?
I've added the user to the Security section of SQL to see
if that helps
Jeff... more >>
Email Capture to SQL
Posted by Kristina Ledford at 12/15/2003 12:40:38 PM
Hello All -
I am looking for a way to capture data in an email body into SQL Server.
Can someone help me out?
Thanks
Kristina
... more >>
DTS Installation Problem
Posted by Dennis Powell at 12/15/2003 11:33:48 AM
I'm installing the dts runtime files on a client machine. When I try to
register the dtspkg.dll I get an error message that the specified procedure
could not be found. I've done it a several times on different machines
without any problems. They are all running WinXP Pro. Anybody else run
in... more >>
ActiveX Problem
Posted by Rafael at 12/15/2003 11:21:18 AM
I'm new to DTS. I have the following problem: Im trying to update a record with an Data Driven query, but each time i execute it, the following error ocurrs.
"Syntax error converting the varchar value 'Main producer' to a column of data type smallint.
the query is:
UPDATE dbo.Distribu... more >>
Package caching incorrect Process Task path
Posted by googlegroups NO[at]SPAM rugh.org at 12/15/2003 10:36:36 AM
There are 3 packages running on my server which are similar except for
the path that an executable runs at. If I right click the package in
Enterprise Manager and execute it, it fails. If I go into design mode
and execute it, it intermittently picks the wrong path to execute on
which I can see... more >>
Task
Posted by anonymous at 12/15/2003 10:16:34 AM
In my DTS package I have (Execute SQL Task ) name test1.
I would like to execute this task and skip other taks in
the same dts. How do I do this?... more >>
Updating Records from Text File
Posted by Scuba79 at 12/15/2003 8:26:10 AM
I currently have a DTS Package with a SQL connection created (Destination), source Text file created and the execute SQL task created with the parameters but I can not get the info from the text file to the parameterized updated statement. How can I do this... more >>
DTSrun.exe Application Error
Posted by Peter Coetzee at 12/15/2003 6:11:07 AM
I'm using a DTS package to transfer data using an ODBC connection from an Informix database. When this package is scheduled a error message pops up saying
**************************
DTSrun.exe - Application Erro
The instruction at "0x77fcc97c" referenced memory at "0xfffffff9". The memory coul... more >>
DTS and EXCEL html files
Posted by Margaret at 12/15/2003 3:52:34 AM
I'm running a DTS package which updates an Excel
spreadsheet. I want to save the spreadsheet in HTML
format. I've set the spreadsheet to publish so that the
HTML page is updated when the spreadsheet is saved. This
works when the spreadsheet is manually saved. I've
written a macro which sav... more >>
|