473,663 Members | 2,726 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Destination Columns Question

When I create a DTS to export a text file from a table, if I click on
the Define Columns button and then Populate from source, then execute,
it changes one of the types to not quotable and the size to 19, which
in turn is changing the file width. The field that it is changing has
a numeric data type and the remainder of the fields are text (all
varying sizes). Is it doing this because it is numeric or is there
some other explaination? And is there anyway to stop it from
happening?

Jul 23 '05 #1
1 1670

"Krissy" <kh*********@pe oplepc.com> wrote in message
news:11******** **************@ o13g2000cwo.goo glegroups.com.. .
When I create a DTS to export a text file from a table, if I click on
the Define Columns button and then Populate from source, then execute,
it changes one of the types to not quotable and the size to 19, which
in turn is changing the file width. The field that it is changing has
a numeric data type and the remainder of the fields are text (all
varying sizes). Is it doing this because it is numeric or is there
some other explaination? And is there anyway to stop it from
happening?


If the data type is numeric with no precision and scale, then by default it
will be numeric(18,0). That means the maximum length of a value would be 18
digits, plus one character for a sign, giving 19, so making the output
column 19 characters wide means that all possible data values will fit. If
you create another column as numeric(10,5) or whatever, then you'll see that
DTS gives it a different size (12 in the case of numeric(10,5) - 10 digits,
1 decimal point, 1 sign). See "decimal and numeric" in Books Online for more
details.

I'm not sure why you want to stop this happening - perhaps if you can
explain why this behaviour is a problem, someone may be able to suggest a
workaround.

Simon
Jul 23 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
2368
by: Bennett Haselton | last post by:
I'm working on an ASP.Net project where I want to test code on a local machine using a local database as a back-end, and then export it to the production machine where it uses the hosting provider's SQL Server database on the back-end. Is there a way to export tables from one SQL Server database to another in such a way that if a table already exists in the destination database, it will be updated to reflect the changes to the local...
8
2400
by: pmud | last post by:
Hi, I have 2 questions: 1. I have an editable data grid with 21 columns. I need to edit only 2 cloumns in this data grid. But when the grid is displayed in Edit mode, all the columns show long text boxes whichmakes the user to SCROLL a lot. I need only these 2 cloumns to be displayed in Edit mode. Is that possible & how? 2. Also, even when the data grid is not displayed in the edit mode, it
40
4463
by: Mark | last post by:
Hello i like to make the following lay out: - 3 columns - center column = fixed width - left and right columns are not fixed and must take all the available space there is left. - left column has a background picture - right column has another background picture
1
1840
by: tommalia | last post by:
I'm trying to write an XSLT to convert an XML document from one schema to another. The destination XML schema has an optional State element. The element can be left out, but if it's present it must have a two character code. The source XML has a required element of type string that be left blank. My problem is, if the source node is present but blank, I want to NOT create the
17
7631
by: vish | last post by:
Hi all, I know this might look strange at first look, but i am looping thru a dataset created using to different tables from database.These two tables have some fields with the same names. Now i want to use those columns from datarow. How can i get exactly the same column i want not the othere duplicate one residing in the datarow?
13
6613
by: Dave White | last post by:
Hello everyone, Is there some way to highlight the destination of a link such as a definition tag: <dt><a name="Definition">Definition</a></dt> Thanks in advance, Dave White
1
2884
by: andymcintosh85 | last post by:
Hi all, I have a split database which i designed on my work computer, i have copied the database onto my home computer. When i try to open the front end i get the error message that the destination of the back end database has changed. I suppose my question is how do i re-direct the front end to the new destination of the back end? any help will be gratefull received!!
9
1473
by: Earl | last post by:
I have somewhat of an interesting scenario: The form allows the user to select a service, which populates a a grid of product information related to that service ("service grid"). The user can then select from the products in the first grid and those choices populate the second "choices grid". The product grid is bound to a strongly-typed dataset table which can be filled in a couple of different ways. More on this shortly.
1
4807
by: Thi | last post by:
Hi, I am trying to develop an application that allows the users to drag a few file(s) from a zip archive to a destination. My question is, how do i determine where the drop destination is because i need to do some validation checking before extracting the files from the zip archive (e.g. validate archive password). Any help or some sample codes would be very much appreciated.
0
8436
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8345
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8771
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8548
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8634
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7371
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
5657
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4349
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
1757
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.