Showing posts with label load. Show all posts
Showing posts with label load. Show all posts

Thursday, March 29, 2012

Get a variable from db when a FormView loads

Hello,
I have a formview and when I load it I would like to check a variable "Cover" from the database, to see wether or not it is empty.

But how on earth do I get the variables from the sqldatasource in my function "FormView1_load(...)" ??

Use a sqlconnection/sqlcommand in FormView1_Load.

Tuesday, March 27, 2012

get % distribution of invalid data?

We've got the requirement where we need to load data (usually dirty of course) from a flat file, and for every column, if the value is invalid, I'm putting a -1 in the field as it flows through the data stream - no problem. (I'm converting all invalids to -1 so they'll go into my eventual int column)

My question though is - at the end of the data flow, is there any smooth way to capture the % invalid values in each column. An example: If my table is as follows...where the # 1 signifies "clean data" and -1 signifies dirty.

col1 col2 col3 col4

1 1 1 1

1 -1 -1 1

-1 1 -1 1

-1 1 -1 1

I would want my % distribution query/ssis result to return:

col1 col2 col3 col4

.5 .25 .75 0

I do not want to do a select/ssis process for each column. Any way to do this all in one shot?

You could write a script component to track the number of good and bad values, and output them to an asynchronous output. Or execute a SQL statement after the data flow to get the statistics.|||

jwelch wrote:

execute a SQL statement after the data flow to get the statistics.

That's what I would try first....just to keep it simpler

geographic load balancing

Say we have 2 farms of servers in Asia and America.. what hardware or
software is out there that load balances geographically i.e Asia users go to
the Asia farm and America users go to America farm as an example ? Actually
how are IPs ranged for different countries so that any of the load balancing
tools know that this IP is from this country ,so and so forth.. Any article
that talks about IP addressing for countries would help
I know this is not SQL related question but SQL is in the farm and not too
sure whom to askYou cannot load balance SQL Server unless you are doing
read only servers.
If you are talking Web servers and such, many products
could potentially do it from HW to SW. If you want to do
it on Web servers, I'd ask in an IIS or Windows forum.