Showing posts with label dts. Show all posts
Showing posts with label dts. Show all posts

Wednesday, March 21, 2012

Encrypting the DTEXECUI command

Hi,
I am trying to find a feature- that was there in DTS but I can't locate it in SSIS

Using DTSRUNUI, we could generate a encrypted command line for executing the pacakge. Now using DTEXECUI, I can get the command line but is there any way in which I can get it in the encryted format?

Thanks.

DTEXEC and DTEXECUI have not support for encryption as did their DTS predecessors. This option is just not there. It wasn't very secure anyway, and could be cracked, but if you really want it back look you could always post a suggestion on MS Connect.

Whilst it was easy, there are some more secure ways of doing this, such as package encryption, or just securing the command line better in the first place.

|||

Thanks for the info.

Friday, March 9, 2012

Encrypt Data

Hi,

In SQL2000 i need to Encryptdata when I export data using DTS.LikeWise I should when i import data I should authenticate that user and decrypt that.

Can any one help?

Thanks,

Karthik

vgvKarthik wrote:

Hi,

In SQL2000 i need to Encryptdata when I export data using DTS.LikeWise I should when i import data I should authenticate that user and decrypt that.

Can any one help?

Thanks,

Karthik

Yeah. Try a different forum. This has got nothing to do with SSIS.

-Jamie

Friday, February 17, 2012

Empty rows in excel data sheet used in DTS

Hi Everyone,

I am using a DTS package where one of the inputs is an Excel Sheet. Actually this sheet is updated manually whenever required i.e once a week or sometimes once a month, but the DTS package runs everyday.

Whenever new rows are added or deleted manually in the excel sheet, empty rows are showed in the sheet after the last row of data. This hinders the DTS package, because the destination table to which the data in the Excel sheet is sent has Primary keys in it.

Can anyone suggest me how to avoid getting the empty spaces in the excel sheet.

Thanks in advance.

Regards,
kalyanExcel has a funny habit of recognising that there is data present when there really isn't. The easiest solution is when deleting records don't just press the delete key, actually right click the mouse and choose delete from the available options. It may even be better to run some macro inside the document that deletes all records below the last record in this manner.|||Hi SJP,

Thanks for the prompt reply. I think to run a macro to delete all records below the last record would be the most feasible solution.

Thanks again.

Regards,
kalyan|||The simple solution I applied was to delete all the named ranges in the Excel worksheet (From the Excel menu: Insert > Name > Define. It seems that after rows are deleted in the Excel sheet, the named ranges do not get updated. After deleting the named ranges, it was easy to Import the data.

Wednesday, February 15, 2012

Empty a table before using DTS to append records?

In Access I have a macro that, each night, takes a table with a
primary key defined in it, and deletes all the rows. Then it
imports/appends records from a fixed width text file. In this way,
since the table is not deleted and recreated, the primary key is kept
intact.

What would be the equivalent SQL method for doing this in an automated
way? I've tried letting DTS import the table from Access, but the
primary key is lost. Is there some way to "empty" a table instead of
dropping it, and then append new records so that the table will end up
having the primary key I want it to have?

Thanks.

Larry
- - - - - - - - - - - - - - - - - -
"Forget it, Jake. It's Chinatown.""Larry Rekow" <larry@.netgeexdotcom> wrote in message
news:2gjej0hqagf196sp7ec3gn1uf96don3hgv@.4ax.com...
> In Access I have a macro that, each night, takes a table with a
> primary key defined in it, and deletes all the rows. Then it
> imports/appends records from a fixed width text file. In this way,
> since the table is not deleted and recreated, the primary key is kept
> intact.
> What would be the equivalent SQL method for doing this in an automated
> way? I've tried letting DTS import the table from Access, but the
> primary key is lost. Is there some way to "empty" a table instead of
> dropping it, and then append new records so that the table will end up
> having the primary key I want it to have?
> Thanks.
> Larry
> - - - - - - - - - - - - - - - - - -
> "Forget it, Jake. It's Chinatown."

I don't really understand what you mean, but I guess that your primary key
column is an IDENTITY column, and you want to remove all data in the table
without resetting the identity value back to 1 (or whatever your seed was)?
The simple way is just this:

delete from dbo.MyTable

This can be slow on large tables with many rows, which is why TRUNCATE TABLE
is often used instead, although it will reset the identity seed.

If this isn't helpful, or if I didn't understand correctly, then you should
post some more detailed information, in particular the CREATE TABLE
statement for your target table (including constraints), and what the data
looks like that you want to import. It would also be good to know if you
want MSSQL to generate new identity values for your primary key, or if you
already have values in the source data which you want to keep.

Simon|||On Thu, 2 Sep 2004 19:43:18 +0200, "Simon Hayes" <sql@.hayes.ch> wrote:

>If this isn't helpful, or if I didn't understand correctly, then you should
>post some more detailed information, in particular the CREATE TABLE
>statement for your target table (including constraints), and what the data
>looks like that you want to import. It would also be good to know if you
>want MSSQL to generate new identity values for your primary key, or if you
>already have values in the source data which you want to keep.
>Simon
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++
Already have values in the source data, a unique field called
"FILE_NUM".

The default statement that DTS creates for me starts out with:

CREATE TABLE [hoyt].[dbo].[IMP7TEXT] (
[IMP_ID] nvarchar (12) NULL,
[CUST_ID] nvarchar (12) NULL,
[FILE_NUM] nvarchar (8) NULL,
etc.....

Because I'm using this table in an ASP.Net website, I want to relate
it to other tables that also have the FILE_NUM values.

Would it be as simple as editing the CREATE TABLE statement to specify
that FILE_NUM is the primary key? (yes, i'm very new at MS SQL).

Thanks,

Larry

- - - - - - - - - - - - - - - - - -
"Forget it, Jake. It's Chinatown."|||Larry Rekow (larry@.netgeexdotcom) writes:
> The default statement that DTS creates for me starts out with:
> CREATE TABLE [hoyt].[dbo].[IMP7TEXT] (
> [IMP_ID] nvarchar (12) NULL,
> [CUST_ID] nvarchar (12) NULL,
> [FILE_NUM] nvarchar (8) NULL,
> etc.....
> Because I'm using this table in an ASP.Net website, I want to relate
> it to other tables that also have the FILE_NUM values.
> Would it be as simple as editing the CREATE TABLE statement to specify
> that FILE_NUM is the primary key? (yes, i'm very new at MS SQL).

Not really. First you would have to make the column NOT NULL before you
can make it a primary key. Then you probably would have to set up foriegn-
key relations as well. Then again, that depends on what you mean with
relate. I don't know ASP .Net, but may you are really talking data tables
in ADO .Net?

--
Erland Sommarskog, SQL Server MVP, esquel@.sommarskog.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techin.../2000/books.asp|||On Thu, 2 Sep 2004 22:00:18 +0000 (UTC), Erland Sommarskog
<esquel@.sommarskog.se> wrote:

>Larry Rekow (larry@.netgeexdotcom) writes:
>> The default statement that DTS creates for me starts out with:
>>
>> CREATE TABLE [hoyt].[dbo].[IMP7TEXT] (
>> [IMP_ID] nvarchar (12) NULL,
>> [CUST_ID] nvarchar (12) NULL,
>> [FILE_NUM] nvarchar (8) NULL,
>> etc.....
>>
>> Because I'm using this table in an ASP.Net website, I want to relate
>> it to other tables that also have the FILE_NUM values.
>>
>> Would it be as simple as editing the CREATE TABLE statement to specify
>> that FILE_NUM is the primary key? (yes, i'm very new at MS SQL).
>Not really. First you would have to make the column NOT NULL before you
>can make it a primary key. Then you probably would have to set up foriegn-
>key relations as well. Then again, that depends on what you mean with
>relate. I don't know ASP .Net, but may you are really talking data tables
>in ADO .Net?
++++++++++++++++++++++++++++++++++++++++++++++++++ ++++
Thanks to you and Simon for responses and hints. Yes, after more
googling, reading, discovering, I made FILE_NUM NOT NULL and was able
to make it the primary key by editing the MAKE TABLE query DTS put
together; now looking into defining the foreign keys, etc.

The penny is starting to drop :)

Larry
- - - - - - - - - - - - - - - - - -
"Forget it, Jake. It's Chinatown."