Showing posts with label columns. Show all posts
Showing posts with label columns. Show all posts

Tuesday, March 27, 2012

Cannot remove matrix column

Added a subtotal to matrix column. But really wanted subtotal below the columns. Now that subtotal column is permanent. Cannot find a way to remove it.

Nevermind, just select subtotal on context menu again and it goes away. How obvious.

Still, after reading various posts here I realize that it's not obvious at all how to put column subtotals at bottom of a matrix. let's say I have a simple matrix with one row group and one column. All I want is to have total at bottom of each data column.

Sunday, March 25, 2012

Cannot reconfigure UNION ALL task

If you add a "Union All" task to your Data Flow the output columns get configured by the first input you connect to it.

However, if you later want to modify the input columns on the inputs (perhaps after adding an upstream Data Conversion) there seems to be no way to get it to forget the original set of output columns.

Ideally, there would be a button you can press to reset the output columns based on the earliest added input. At the very least it ought to forget its output columns when the last input is removed.

Other tasks offer a dialogue to resolve input / output mismatches but not Union All.

or am I missing something?

jks

If you right-click on a column name underneath "Output Column Name" you are given the option to delete that column.

Is that what you want?

-Jamie

|||

I agree, while deleting or adding back one column is not the most painful process, many times while working on a package my upstream compenents changed a lot and I found myself deleting my Union All and Merge tasks and adding them back in because it was the easiest way to update them.

It would be nice if there was a refreash of some sort that would reexamine and update any added/deleted columns.

|||

Thanks Jamie,

That helps - I had seen Delete in the right-click menu but it was always disabled when I needed it. Probably because I was trying to delete a new column I had just added without saving the task in between. I guess I'm used to records being committed when you move off them.

However, I still think it would be useful if Union All offered the same sort of intelligent reconfiguration options presented by other tasks. Any columns you've added to a data flow upstream ought to be propogated through the first input of a Union All to its output.

regards

jks

|||

I can see why this (i.e. propogating the first input) would be useful but by the same token there may be people that would want the behaviour to be as it is now. As with most things you can't please all the people all of the time. Personally I think the functionality is fine as it is. Matter of opinion I guess.

Its worth saying that UNION ALL is an asynchronous component and this is the fundamental reason that any inputs don't automatically propogate through to the output. You'll find that the same is true of all asynchronous components.

-Jamie

|||

Ok - I hadn't appreciated the distinction between sync and async components. If this is a consistent architectural feature I'll bite my tongue until I understand the architecture a little better!

This is just SSIS day 3 for me.

regards

jks

|||

jks,

Well it sounds like you are headlong into it already. I recommend that you get your head around a few concepts pretty early. Namely:

The container hierarchysql

Friday, February 24, 2012

cannot insert Null value into columns 'nicknames'

We have a merge replication on a database containing dynamic filters. At a
given moment one of the clients gets the following error during replication.
'The process could not make a generation at the Subscriber'
The error message is
'Cannot insert the value NULL into column 'nicknames', table
'vdavenne.dbo.MSMerge_genhistory'; column does not allow nulls.
Nol ,
does the problem resolve itself when you restart the merge agent? If not,
please can you post up the script of your article and publication and I'll
have a play around with it.
Thanks,
Paul Ibison
|||You need SP3a or Microsoft's hot fix. Went through this pain myself about 2 months ago.
Good luck.
C

Quote:

Originally posted by Paul Ibison
Nol ,
does the problem resolve itself when you restart the merge agent? If not,
please can you post up the script of your article and publication and I'll
have a play around with it.
Thanks,
Paul Ibison

Sunday, February 19, 2012

Cannot Import from Filemaker !

Hi all,
I am trying to import data from Filemaker Pro 5 database into SQL Server
2000 using DTS.
The problem is that big text columns are truncated to 255 chars.
Despite I use ntext or text or nvarchar(4000) in destination table, datas
are systematically truncated.
What hapens ?
Please help !
EricIt sounds rather like this problem but this problem has text files. Can you
workaround in a similar fashion ?
DataPump truncates delimited fields to 255 characters
(http://www.sqldts.com/default.aspx?297)
--
--
Allan Mitchell (Microsoft SQL Server MVP)
MCSE,MCDBA
www.SQLDTS.com
I support PASS - the definitive, global community
for SQL Server professionals - http://www.sqlpass.org
"Eric" <tritet@.free.fr> wrote in message
news:bo604k$6ks$1@.reader1.imaginet.fr...
> Hi all,
> I am trying to import data from Filemaker Pro 5 database into SQL Server
> 2000 using DTS.
> The problem is that big text columns are truncated to 255 chars.
> Despite I use ntext or text or nvarchar(4000) in destination table, datas
> are systematically truncated.
> What hapens ?
> Please help !
> Eric
>
>|||The problem is still there after installing SP3 for Sql server.
The problem is that I want to import data from Filemaker to sql server.
It is an import action, not export as related in this Bug report :
247527 FIX: DTS May Truncate Characters When You Export a Table Column of
Character Data Type to a Text File
Occurs only with strings that are over 255 in length under certain
conditions.
Corrected in SQL Server 2000 SP2.
"Allan Mitchell" <allan@.no-spam.sqldts.com> a écrit dans le message de
news:u2Dkr$ioDHA.2416@.TK2MSFTNGP10.phx.gbl...
> It sounds rather like this problem but this problem has text files. Can
you
> workaround in a similar fashion ?
> DataPump truncates delimited fields to 255 characters
> (http://www.sqldts.com/default.aspx?297)
> --
> --
> Allan Mitchell (Microsoft SQL Server MVP)
> MCSE,MCDBA
> www.SQLDTS.com
> I support PASS - the definitive, global community
> for SQL Server professionals - http://www.sqlpass.org
> "Eric" <tritet@.free.fr> wrote in message
> news:bo604k$6ks$1@.reader1.imaginet.fr...
> > Hi all,
> >
> > I am trying to import data from Filemaker Pro 5 database into SQL Server
> > 2000 using DTS.
> >
> > The problem is that big text columns are truncated to 255 chars.
> >
> > Despite I use ntext or text or nvarchar(4000) in destination table,
datas
> > are systematically truncated.
> >
> > What hapens ?
> >
> > Please help !
> >
> > Eric
> >
> >
> >
>

Sunday, February 12, 2012

Cannot find columns from a stored procedure...

I have an application that I inherited, and I have a annoying problem. We're using stored procedures to return most of our data, and occasionally we receive errors stating that a particular column cannot be found in the resulting data table. When I run the stored procedure against SQL Server I receive the expected output. What would make this random act happen, any ideas?

Also, I keep receiving errors stating that a connection is already open and needs to be closed before an action to the database is performed. I'm explicitly closing each connection in a finally block for every method in my data access code, so a connection should always be closed, right?

Does the code the runs the stored procedure site inside a try...catch, if so make the catch log the parameter that were supplied to the stored procedure. Also I would log the number of rows in the datatable. This should allow the problem to be reproduced.

>before an action to the database is performed
What action(s) give rise to this message.

For completeness, which version of SQL Server and ASP.NET are you using?

|||

Here is an example of the code:


SqlDataAdapter da = new SqlDataAdapter("GetWFSAInfo",SQLcn);
DataSet ds = new DataSet();
da.SelectCommand.Parameters.Add("@.WFSAID",SqlDbType.Int).Value = WFSAID;
da.SelectCommand.CommandType = CommandType.StoredProcedure;

try {
da.Fill(ds,"GetWFSAInfo");
}
catch (Exception ex) {
NotifyOfException (ex);
}
finally {
SQLcn.Close();
}

return ds;

Originally, none of this code was in try/catch/finally blocks at all, so I had to weed through over 11,000 lines of data access code to put these constructs in. That seems to curb some of the problems. I prefer to use a class library that I created that takes care of all of this for me. I swear, object orientation, inheritance and the like and the previous programmer were never introduced. Aggravating to say the least...

NotifyOfException logs the exception to a log file. I am using SQL Server 2000/ASP.NET 1.1.

Thanks for all of your help...

|||

You will need to modify the catch

catch (Exception ex) {
NotifyOfException (ex);
}

to

catch (Exception ex) {
ex.Data = WFSAID;
NotifyOfException (ex);
}

This assumes of course that WFSAID is a variable.