Import MS SQL DB - NVarchar has double length
Hi all
I have problem with import MS SQL database. If I import column Nvarchar(100) from database to Data Modeler, so in Data Modeler is this column as nvarchar(200). If I import column Nvarchar(max), so in Data Modeler is as nvarchar(-1).
I use JDBC sqljdbc4.jar. I use native connection (tab SQL Server). I also tried JDBC-ODBC Bridge but any better result. Everything is same.
Where is problem? What do I do bad?
Help me please!
Hi,
thanks for reporting the problem, I logged a bug for that.
Philip
Similar Messages
-
I have a Panasonic DMC-FZ38 HD camera and have lots of hd movie clips stored on my old Windows Pc using Photofun software supplied by Panasonic, which I want to transfer to my new Imac computer. I am able to copy my most recent movies that are still on the memory card from my camera onto Imovie and view them with no problems at all. When it comes to copying my old existing hd movies stored on my Windows Pc (and which are no longer stored on a memory card), I discover that when I view them on the Imovie, the speed has doubled but the sound is normal. In order to transfer my old movies I have copied them back onto a memory card (SDHC - the same card as previously used) and then put the card back into my camera and then copied them onto my Imac via the camera USB. I have also used a card reader but get the same result. If I view the same movie through my camera, or look at it on my old pc, it plays at normal speed. Does anyone have any ideas as to why this is happening please?
have you read and watch the Tutorials..? :
http://www.apple.com/ilife/tutorials/#imovie
iM is a bit.. iffy, when it comes to the definition, what a 'camera' is. historically, only tape based machines were a movie-camera. nowadays still-cams allow movin' images too..
but, as mentioned above: the intended workflow is: material from photo cameras (even when they move) => import via iPhoto; material from video cameras (even when they don't move.. ) => iMovie
when the import is done, you'll notice in all iLife apps the 'media browser' - in iM09, on the very right, the icon with a camera on.. click it, presto, all (incl. your 'videos') your iPhoto Library at hand for usage in iMovie.
watch this:
http://www.apple.com/findouthow/movies/imovie08.html#tutorial=otherimport
(about from midths of tutorial...) -
Hi to all,
My DBMS is SQL Server2000 and i created a table which has two columns. Two of them were defined as varchar, but when i wrote Turkish character, these characters automaticly were converted to the different characters. Because varchar does not support Unicode. So, I had to use nvarchar, but if i used nvarchar how can I match nvarchar values to the java.sql.Types. There is no matching values for SQL Server nvarchar type. So, that is my question, how can i write Turkish character to the SQL Server via application which uses JDBC API to connect to the SQL Server.
Regards
BulentHi I am curious to see how you established a JDBC connection using Java to SQL Server 2000.
Can you provide some code as an example for me?
I am having problems just establishing a connection. I downloaded the JDBC driver from MS site and installed it.
Here is some code I got:
Connection con = DriverManager.getConnection("jdbc:microsoft:sqlserver://DEV01:1433;DatabaseName=NG_RFQ;SelectMethod=cursor", "jla", "jla");
Statement stmt = con.createStatement();
ResultSet rs = stmt.executeQuery("SELECT * FROM Customer");
if(rs.next()){
customerName = rs.getString("CustomerName");
buyerName = rs.getString("BuyerName");
con.close();
Can you tell me what I am doing wrong? Do I need to create a new DSN or something? I have no idea.
Please advise.
Thanks!!! -
since doing the 7.0.4 update i notice that my mobile data has doubled and i am running out of data mid month. I've disabled apps s not many running. Any suggestions?
I am having the same issue even with the newer 7.1. I have a 1-100 KB data push on both my husdand's and my phone every hour on the hour (i.e. my will be at :23 of the hour and his will be at :13 of the hour and it will change). This is whether we are on a WIFI and with all apps, background refreshes, push notifications, etc turned OFF.
-
Problem installing SQL Server 2012 SP1: "managed sql server installer has stopped working"
Hello,
I have a big problem.
I just downloaded SQL Server 2012 SP1 and I only want to install SSMS. The installer always crashes with an error message "managed sql server installer has stopped working".
I already tried all solutions from Google for this problem but nothing works.
Can someone help me plase?
My System: Window 8 Pro with Visual Studio 2012.
Thanks
SvenWould you please uplaod/share SQL Server setup logs
C:\Program
Files\Microsoft
SQL Server\110\Setup
Bootstrap\Log\20130125_133342
to file sharing service like SkyDrive.com
FAQ
Regards,
Ahmed Ibrahim
SQL Server Setup Team
My Blog
This posting is provided "AS IS" with no warranties, and confers no rights. Please remember to click
"Mark as Answer" and "Vote as Helpful"
on posts that help you.
This can be beneficial to other community members reading the thread. -
Restored my iMac from Time Machine now Hard Drive has doubled! Need Space!
I Restored my new (refurbished) iMac 2010 (Snow Leopard 10.6.4) from Time Machine now the Hard Drive has doubled 450GB to 900GB. I want to recover the space on my hard drive, What do I do?
Side Note: My previous iMac (2007) died so I went and bought a refurbished model here. My old iMac had 10.6.8 installed versus my "new" iMac has 10.6.4 installed. I can't restore from my Time Machine since it was from another model.Since it's a new (refurb), boot with the install disc, wipe the HD, and reinstall the OS. On first boot, don't migrate, but create an admin account using the same username/password combo as on the TM backup. When finished, run Software Update, and bring it up to 10.6.8. Then, mount the TM HD and try restoring. Life would be so much easier if you had a bootable backup/clone. Instantly able to migrate.
For more on TM, see Pondini's TM FAQs. -
In a SQL query whihc has join, How to reduce Multiple instance of a table
in a SQL query which has join, How to reduce Multiple instance of a table
Here is an example: I am using Oracle 9i
is there a way to reduce no.of Person instances from the following query? or can I optimize this query further?
TABLES:
mail_table
mail_id, from_person_id, to_person_id, cc_person_id, subject, body
person_table
person_id, name, email
QUERY:
SELECT p_from.name from, p_to.name to, p_cc.name cc, subject
FROM mail, person p_from, person p_to, person p_cc
WHERE from_person_id = p_from.person_id
AND to_person_id = p_to.person_id
AND cc_person_id = p_cc.person_id
Thnanks in advance,
Babu.SQL> select * from mail;
ID F T CC
1 1 2 3
SQL> select * from person;
PID NAME
1 a
2 b
3 c
--Query with only ne Instance of PERSON Table
SQL> select m.id,max(decode(m.f,p.pid,p.name)) frm_name,
2 max(decode(m.t,p.pid,p.name)) to_name,
3 max(decode(m.cc,p.pid,p.name)) cc_name
4 from mail m,person p
5 where m.f = p.pid
6 or m.t = p.pid
7 or m.cc = p.pid
8 group by m.id;
ID FRM_NAME TO_NAME CC_NAME
1 a b c
--Expalin plan for "One instance" Query
SQL> explain plan for
2 select m.id,max(decode(m.f,p.pid,p.name)) frm_name,
3 max(decode(m.t,p.pid,p.name)) to_name,
4 max(decode(m.cc,p.pid,p.name)) cc_name
5 from mail m,person p
6 where m.f = p.pid
7 or m.t = p.pid
8 or m.cc = p.pid
9 group by m.id;
Explained.
SQL> select * from table(dbms_xplan.display);
PLAN_TABLE_OUTPUT
Plan hash value: 902563036
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 3 | 216 | 7 (15)| 00:00:01 |
| 1 | HASH GROUP BY | | 3 | 216 | 7 (15)| 00:00:01 |
| 2 | NESTED LOOPS | | 3 | 216 | 6 (0)| 00:00:01 |
| 3 | TABLE ACCESS FULL| MAIL | 1 | 52 | 3 (0)| 00:00:01 |
|* 4 | TABLE ACCESS FULL| PERSON | 3 | 60 | 3 (0)| 00:00:01 |
PLAN_TABLE_OUTPUT
Predicate Information (identified by operation id):
4 - filter("M"."F"="P"."PID" OR "M"."T"="P"."PID" OR
"M"."CC"="P"."PID")
Note
- dynamic sampling used for this statement
--Explain plan for "Normal" query
SQL> explain plan for
2 select m.id,pf.name fname,pt.name tname,pcc.name ccname
3 from mail m,person pf,person pt,person pcc
4 where m.f = pf.pid
5 and m.t = pt.pid
6 and m.cc = pcc.pid;
Explained.
SQL> select * from table(dbms_xplan.display);
PLAN_TABLE_OUTPUT
Plan hash value: 4145845855
| Id | Operation | Name | Rows | Bytes | Cost (%CPU)| Time |
| 0 | SELECT STATEMENT | | 1 | 112 | 14 (15)| 00:00:01 |
|* 1 | HASH JOIN | | 1 | 112 | 14 (15)| 00:00:01 |
|* 2 | HASH JOIN | | 1 | 92 | 10 (10)| 00:00:01 |
|* 3 | HASH JOIN | | 1 | 72 | 7 (15)| 00:00:01 |
| 4 | TABLE ACCESS FULL| MAIL | 1 | 52 | 3 (0)| 00:00:01 |
| 5 | TABLE ACCESS FULL| PERSON | 3 | 60 | 3 (0)| 00:00:01 |
PLAN_TABLE_OUTPUT
| 6 | TABLE ACCESS FULL | PERSON | 3 | 60 | 3 (0)| 00:00:01 |
| 7 | TABLE ACCESS FULL | PERSON | 3 | 60 | 3 (0)| 00:00:01 |
Predicate Information (identified by operation id):
1 - access("M"."CC"="PCC"."PID")
2 - access("M"."T"="PT"."PID")
3 - access("M"."F"="PF"."PID")
PLAN_TABLE_OUTPUT
Note
- dynamic sampling used for this statement
25 rows selected.
Message was edited by:
jeneesh
No indexes created... -
Cannot import java.sql.BaseQuery
Hi,
I am trying to run the following example using JDK6:
import java.sql.BaseQuery;
import java.sql.DataSet;
import java.sql.Select;
public interface UserQueries extends BaseQuery {
// Select all users
@Select (sql ="SELECT userId, firstName, lastName FROM Users",
readOnly=false, connected=false, tableName="Users")
DataSet<User> getAllUsers ();
// Select user by name */
@Select (sql ="SELECT userId, firstName, lastName FROM Users"
+ "WHERE userName=?", readOnly=false, connected=false,
tableName ="Users")
DataSet<User> getUserByName(String userName);
}But I get the error in the import statement itlself. It is not able to import these classe-
import java.sql.BaseQuery;
import java.sql.DataSet;
import java.sql.Select;
Are they shipped with JDK 6?
thnx
Sanjeev.Because those classes don't exist. A simple, and very quick, perusal of the API docs would have told you this.
http://java.sun.com/javase/6/docs/api/index.html -
Hi All,
When I attempt to import some regular, commercial CD's, iTunes returns the message "The song names for this CD could not be found online. Do you still want to import the songs?" This has happened for four CD's in a row now. Today, after importing some other CD's in the regular way, all of a sudden, iTunes won't recognize the Eagles - "Hotel California" CD, the Eagles "**** Freezes Over" CD, "The Best of Roy Orbison" or "Milestones" by Miles Davis.
What happened? Anybody know?We've gotten the same error at the same time. I guess we need to let this play out. In the meantime, I'm gonna update iTunes.
-
Hi,
Can anyone help me with this?
I have imported an excel spreadsheet with different tabs into SQL. One of the tables created from one of the tabs is returning "values" and "nulls" . The table contain 126 rows of Data in excel yet a total of 4509 rows were returned 4383 rows are all null. How do i modify the excel file to ensure that the unnecessary "null" cells don't get imported into SQL.
thank youHi Stephanie,
you need to check the datatype of your SQL, then your excel datatype must comply on it.
ex. SQL datatype is Float, then your excel values must only contain number, if in case the column is filled with any non numeric character it will give you null values
regards
Fidel -
When I click on a web link to open in a new window - it has double Browser bars (chrome), no URL. I close that window and do it again it often works correctly.
I have made screen shots and placed at pageaccess.com/FireFox_5-6_issue.pdfStart Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
*Don't make any changes on the Safe mode start window.
*https://support.mozilla.com/kb/Safe+Mode
*https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes -
Hi Team,
Earlier i had SQL Server 2008 R2 on my Machine. For one work around i unistall SQL Server 2008 R2 and Trying to install SQL Server 2008 but i am not able to install with below error:
TITLE: SQL Server Setup failure.
SQL Server Setup has encountered the following error:
Method not found: 'Boolean Microsoft.SqlServer.Configuration.MsiExtension.MsiExtensionMetadata.get_IsSlipstreamOrPatch()'..
ThanksHi Lydia,
i have followed the above step and i am able to proceed further but while installation i am getting the below error consistently.
TITLE: Microsoft SQL Server 2008 Setup
The following error has occurred:
Locating the SQL Server Browser service component failed with Windows Installer return code '2'. The component ID: '{2E86FD41-C179-456E-8E6A-5157ED427228}'.
Click 'Retry' to retry the failed action, or click 'Cancel' to cancel this action and continue setup.
For help, click: http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=10.0.1600.22&EvtType=0x8510C01B%25400x31BA4472%25401222%254052007
BUTTONS:
&Retry
Cancel
2:
TITLE: Microsoft SQL Server 2008 Setup
The following error has occurred:
SQL Server Browser configuration for feature 'SQL_Browser_Redist_SqlBrowser_Cpu32' was cancelled by user after a previous installation failure. The last attempted step: Retrieving full path to the SQL Server Browser service executable using Windows Installer
API for the SQL Server Browser component with ID '{2E86FD41-C179-456E-8E6A-5157ED427228}'..
For help, click: http://go.microsoft.com/fwlink?LinkID=20476&ProdName=Microsoft+SQL+Server&EvtSrc=setup.rll&EvtID=50000&ProdVer=10.0.1600.22&EvtType=0x8510C01B%25400x31BA4472%25401222%254052007
BUTTONS:
OK
After ignoring these step..installation getting complete but ..at the end i am not able to connect to server.
Could you please help me on this.
Thanks,
Sumit -
Hello,
When I am installing SQL Server 2008 on win7, I encountered an error: SQL Server Setup has encountered the following error: Method not found:'Boolean Microsoft.SqlServer.Configuration.MsiExtension.MsiExtensionMetadata.get_IsSlipstreamOrPatch()‘
What's the metter? What can I do to deal with it?
I need your speed answers.
Thanks,
Vicky SongHello,
Looking at your issue I am wondering if your media is corrupt.
What edition of SQL Server you are trying to install? Did you download that media?
If you downloaded it, perhaps you should try to download it again.
Are you able to install that SQL Server 2008 on another machine without any problem?
Hope this helps.
Regards,
Alberto Morillo
SQLCoffee.com -
How can i import java.sql package for midlet development
I am trying to write a midlet app using Wireless Toolkit 2.5.2. I would like to connect my application to JavaDB in embedded mode. But when I write "import java.sql.*;", I get an error "package java.sql does not exist
". I would like to know how can i include this package. please help.FBL wrote:
Sorry to jump in, but isn't there limited jdbc using unconventional methods?
[http://developers.sun.com/mobility/configurations/articles/cdc/jdbc/|http://developers.sun.com/mobility/configurations/articles/cdc/jdbc/]
If so, I feel this may better answer the OPs question.
-TresAbove article refers to CDC - it is useless in CLDC midlets -
Connection error using import java.sql.*;
I have a very strange error. See the code below:
import java.sql.*;
import java.lang.*;
class a7 {
public static void main(String args[]) {
String kolom,ko = new String();
String db = "devarbn1";
String url = "jdbc:odbc:"+db;
String login = "arbor";
String password = "arbor123";
String driver = "sun.jdbc.odbc.JdbcOdbcDriver";
String BasisQuery = "select COLUMN_NAME " +
" from all_tab_columns " +
" where table_name = ? ";
System.out.println("Database: " + db);
Connection con;
try {
Class.forName(driver);
} catch (java.lang.ClassNotFoundException e) {
System.err.print("ClassNotFoundException: ");
System.err.println(e.getMessage());
try {
con = DriverManager.getConnection(url,login,password); //this line gives an error!!!
and so on.....
This is a fragment of the whole program. All of a sudden I cannot compile it anymore using jdk1.3 or jdk 1.4 (I never had compiling problems before with this program)
It gives the following error message: incompatible types, found Connection.
I haven't got a clue what went wrong. I have a lot of other java files in which a connection is involved. I cannot compile any of them anymore. Even reinstalling jdk1.4 or 1.3 doesn't help. Can anyone please help me?
Thanx, debeumersYes, the whole message is:
incompatible types found : java.sql.Connection required : Connection.
The whole code is (it is from a different java file then the code I used before)
import javax.sql.*;
import java.sql.*;
import java.lang.*;
public class Connection {
static final String arb_nl = "arbornl";
static final String arb_fr = "arborfr";
static final String clar_nl = "clarnl";
static final String clar_fr = "clarfr";
static final String po = "pcnlpp";
static final String user_clar_nl = "report";
static final String pass_clar_nl = " r3p0rt";
static final String user_clar_fr = "report";
static final String pass_clar_fr = " r3p0rt";
static final String user_arb_fr = "report";
static final String pass_arb_fr = " r3p0rt";
static final String user_arb_nl = "report";
static final String pass_arb_nl = " r3p0rt";
static final String user_po_nl = "report";
static final String pass_po_nl = "r3p0rt";
static boolean a = true;
static boolean b = true;
static boolean c = true;
static Connection conarb,conclar,conpo;
static String driver = "sun.jdbc.odbc.JdbcOdbcDriver";
String loginarb = user_arb_nl;
String passwordarb = pass_arb_nl;
String loginclar = user_clar_nl;
String loginpo = user_po_nl;
String passwordpo = pass_po_nl;
String passwordclar = pass_clar_nl;
public Connection() {
public void makeConnection(String database,String user,String password,String type) {
String url = "jdbc:odbc:" + database;
try {
Class.forName(driver);
} catch (java.lang.ClassNotFoundException ex) {
System.err.print("ClassNotFoundException: ");
System.err.println(ex.getMessage());
a = false;
try { if (type=="ARB") { conarb = DriverManager.getConnection(url,user,password);} //giving the problem!!
if (type=="CLAR") { conclar = DriverManager.getConnection(url,user,password);} //giving the problem!!
} catch(SQLException ex) {
System.err.println("SQLException: " + ex.getMessage());
b = false;
/* try { if (type=="PO") {conpo = DriverManager.getConnection(url,user,password);}
} catch(SQLException ex) {System.err.println("SQLException: " + ex.getMessage()); c = false;}*/
I hope you can help..
Thanks...debeumers
Maybe you are looking for
-
Performance Issues with Debugging even in Display Mode
Hi not certain if this would sit in Security, ABAP or Basis, but lets start here as it is security related. S_DEVELOP with any activity on DEBUG on a production system is a concern, but what are the performance related issues when a super user has to
-
Getting error while posting doc using BAPI BAPI_ACC_DOCUMENT_POST
Hi, I am passing the value for posting key in BAPI through TAX_CODE field in ACCOUNTGL (parameter name under tables). It is giving error "Tax code 01 in procedure TAXR0 is invalid". Can anyone help me to solve this .
-
Help me choose a good Graphic Card for my Laptop
Hello guys, first let me say I'm glad I've found this forum, It's been some time that I wanted to decide and buy a new graphic card for my laptop, but I guess this is the time and I'll start by asking for some help from you. My laptop is HP Pavilion
-
Hi all, i have to call crm ui component BT115QS_SLSQ from custom report ecc passing quotation number . I run the standard report BSP_WD_APPL_STARTER with param : BSP Application = BT115QS_SLSQ In Client = '001' but i have an erro
-
LabView Step Module requires an input path defined
I have a sequence step that calls a LabView module requiring a file path as an input parameter. If I select the Default checkbox in the module tab, which results in the path defined as a default value in the vi to be used, the step works successfull