Gravitation cannot be held responsible for people falling in love ~ Albert Einstein
rahul V kumar
Ranch Hand
Joined: May 20, 2003
Posts: 82
posted
0
What is your database?
You could do something like this.
1) Create a Type on your database. On oracle it would be something like this type VARCHAR2_TABTYPE as table of varchar2(1000); 2)
hope this helps.
Udayan Patel
Ranch Hand
Joined: Oct 14, 2004
Posts: 94
posted
0
Originally posted by rahul V kumar: What is your database?
You could do something like this.
1) Create a Type on your database. On oracle it would be something like this type VARCHAR2_TABTYPE as table of varchar2(1000); 2)
hope this helps.
If you want to do it go for it but it is not a good idea, to bind your application to a specific database and driver.
rahul V kumar
Ranch Hand
Joined: May 20, 2003
Posts: 82
posted
0
I am not suggesting to bind to a database nor a driver.
What I tried to point out is that , this is the way it could be done on oracle. I hope on SQL Server too you have some mechanism to create a "TYPE" object.
And you need this "TYPE" object because ArrayDescriptor needs one.
We're pleased to have you here with us on the Ranch, but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.
In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.