Anyone have any experience with running MS SQL Server web applications using Java servlets with connection pooling? Any settings/tricks/traps that we should be aware of?
Our basic problem is that under CERTAIN senarios (which we haven`t been able to strictly identify yet), it appears that each browser client has to wait for the last client to finish - only shared locks are being applied to the database.
I have looked all over the MS site and can find very little information regarding SQL Server's support for the VMWare environment. Based on other information that I have obtained on other forums and web-site it looks like it is not supported by Microsoft, but I would like the company line if possible.
I have finished a change request from our client. I need to update clients' database with the one in developments.Here is the changes i made to database:Added/Changed some tablesAdded/Changed some stored proceduresAdded data to some dictionary tableThe data in clients' current database MUST be kept. So how can I merge the changed information to clients' database?
How do I find out what codepage a server has been set up with?
I've 2 sql boxes. Registering them in Enterprise Mgr. gives a message for the second one saying codepage is different. I don't want to have to reinstall both.
I thought I'd be able to find this in a FAQ or BOL but haven't found it so far.
LocaleID is 'English (United States)' However, after I scripted query statement like 'select cast(col as varchar(20)) as col1...', the codepage changed to my local codepage, the col's datatype is nvarchar(20) Any idea about this? Thanks
Bonjour, J'execute un script en sql 7 qui lance isql qui crée un fichier texte en sortie. j'ai un souci, ce fichier de resultat a remplacer les lettres accentuées é è ... par des virgules , Quelle est la solution ? Merci d'avance ...
I'm in the process of upgrading some databases from SQL 7.0 to SQL 2000. The SQL7.0 server was installed using codepage 850 (multilingual), Sortorder CI AS.
I now copied the datafiles to the new SQL2K server and attached them. The database properties now show codepage SQL_Latin1_CP850_CI_AS which seem right to me. Unfortunately most special characters show wrongly in our application. In EM or QA everything looks fine. I tried to change settings in the client network utility but without success. Any ideas what is wrong? :confused:
Well , I have a SQL 7 work with code page 840 and contain about 3 MG of arabic content (extended ASCII Code) , but we need to chnage the SQL 7 to work with code page 1252 with the data ib it , cause we face a problem with the code page 840 so we want it to be 1252 , so if some one suggest anything to solve this problem , I will be happy to hear from them ....
I'm having a problem creating a very simple transformation.
source: sql 2000 table: FE_Login_Attempts field FLA_UserName defined as varchar(50) collation: SQL_Latin1_General_CP1_CI_AS
destination: sql 2005 table: Inc_Fact_CasAp_Transactions field FLA_UserName defined as varchar(50) collation: SQL_Latin1_General_CP1_CI_AS
for some reason, I'm having a problem transfering certain records, even though the collation on the dbs are the same, and I'm using the 1252 codepage for the FLA_UserName field. the complete error messege i'm getting is:
Error: 0xC020901C at Insert CasAp_Transactions into Inc_Fact_CasAp_Transactions, TTF-SQL;db_CasAp;FE_Login_Attempts [1]: There was an error with output column "FLA_UserName" (1157) on output "OLE DB Source Output" (11). The column status returned was: "Text was truncated or one or more characters had no match in the target code page.".
Error: 0xC020902A at Insert CasAp_Transactions into Inc_Fact_CasAp_Transactions, TTF-SQL;db_CasAp;FE_Login_Attempts [1]: The "output column "FLA_UserName" (1157)" failed because truncation occurred, and the truncation row disposition on "output column "FLA_UserName" (1157)" specifies failure on truncation. A truncation error occurred on the specified object of the specified component.
Error: 0xC0047038 at Insert CasAp_Transactions into Inc_Fact_CasAp_Transactions, DTS.Pipeline: The PrimeOutput method on component "TTF-SQL;db_CasAp;FE_Login_Attempts" (1) returned error code 0xC020902A. The component returned a failure code when the pipeline engine called PrimeOutput(). The meaning of the failure code is defined by the component, but the error is fatal and the pipeline stopped executing.
Error: 0xC0047021 at Insert CasAp_Transactions into Inc_Fact_CasAp_Transactions, DTS.Pipeline: Thread "SourceThread0" has exited with error code 0xC0047038.
Error: 0xC0047039 at Insert CasAp_Transactions into Inc_Fact_CasAp_Transactions, DTS.Pipeline: Thread "WorkThread0" received a shutdown signal and is terminating. The user requested a shutdown, or an error in another thread is causing the pipeline to shutdown.
Error: 0xC0047021 at Insert CasAp_Transactions into Inc_Fact_CasAp_Transactions, DTS.Pipeline: Thread "WorkThread0" has exited with error code 0xC0047039.
I have deveoped a replacement for some an old bcp based applications in the .Net Framework that uses the SqlBulkCopy class.
I have run into some difficulties with code page translation:
The original BCP client runs with OEM Codepage 437 , thus the data "ëÄÆòÖ" gets loaded as "d-¦=+". DB is SQL_Latin1_General_CP1_CI_AS, column is varchar.
I have been unable to perform any code page Encoding in .Net that yields the same result.
I want to emulate this behaviour in my database loader but as yet have been able to find a way....
I know there is a sortid in .iss file, which could be used to change installation params, but I want to know how to change it after installation. Thanx.
My preferred programming language is Java (sorry Microsoft). I've searched for examples of running DMX queries into an Analysis Services database from Java but failed to locate any. I've seen suggestions that XMLA could be used but again, I can't locate any examples (in any language). For my current project I ran up the white flag and used C# instead but this wouldn't be an option in other cases. It would be possible to make the DMX calls from C# objects and call those from Java but that's pretty labourious to code.
Anyone have any tips for using Java against SQL Server? Our ITdirector is thinking of making us a Java shop, but I really would liketo stay with SQL Server as our RDBMS. We have Oracle Financials butour in-house development (currently VB6 client-server, soon to bereplaced by a service-oriented architecture based around Sonic andincluding SalesForce, both of which are Java) has been against SQLServer. He says five years ago at his old company Java/SQL Server hadlousy performance. I vaguely remember that since then Microsoft cameout with their own JDBC driver for SQL Server... Anyone have experiencewith this? Any performance tips will be hugely appreciated.TIA
hi all and sorry for my englishI write into a SqlServer2000 database via jdbc using a PreparedStatement(pstmt) and one of fields is a TimeStamp, my code is:qwdum=System.currentTimeMillis();pstmt.setTimestamp(8 , new Timestamp(qwdum));sometimes the field on table is correct (the milliseconds are the same oflast 3 digits of variable qwdum), other times it has a difference of 1 o 2millisecondsthe same code with jdbc Oracle or iSeries works fineany idea?thanksRoberto Nenni
I am in the process of evalulating using SSRS with our Java app and I have a couple questions up front:
I see you can call SSRS thru web services and display an HTML report. Can you have the report go straight to the printer, rather then preview. So we can offer both Print and Print Preview options.
I see the page streaming option. So on page preview we could ask for page 1 to get a snappy display, then ask for the rest of the report to generate in background?
i want to use the sql server with java, but i don't find any documentation. I already loaded the sqljdbc.jar from the microsoft webpage, but i don't know how to connect.
This is my Connection function, but it doesn't connect. I get an exception like "cannot connect to ..."
Hello. I have just got windows xp profesional x64.When i am on the internett my jave does not open the programs and games.Can some one help me please.Thanks.
Hello. I am having trouble finding a descent API for executing TSQLvia JDBC. I have tried the Microsoft driver AND the JDTS driver's butget the same syntax errors. I am hoping there is a good solution alsofor executing scripts using the same. Any help is MUCHappreciated.Thx.
I'm having a problem getting back appropriate metadata for storedprocedures from MS SQL Server 2000 and 2005.I've created a simple stored procedure that has an output param thatis a cursor.When I ask for the metadata for that stored procedure using a JDBCdriver I get back a datatype value for my parameter specifying an intnot a result set.Here is my stored procedure:CREATE PROCEDURE xasp_INx_OUTcur_RETint@OutCrsr CURSOR VARYING OUTPUT ASSET @OutCrsr = CURSOR FORSELECT LASTNAME, FIRSTNAMEFROM CONTACTS2OPEN @OutCrsrRETURN 7Here is the java code:Connection conn = driver.connect(url, props);DatabaseMetaData dbMeta = conn.getMetaData();ResultSet columnRes = dbMeta.getProcedureColumns(cat, schem, name,"%");while (columnRes.next()){String procCat = columnRes.getString("PROCEDURE_CAT");String procSchem = columnRes.getString("PROCEDURE_SCHEM");String procName = columnRes.getString("PROCEDURE_NAME");String colName = columnRes.getString("COLUMN_NAME");short colType = columnRes.getShort("COLUMN_TYPE");short dataType = columnRes.getShort("DATA_TYPE");String typeName = columnRes.getString("TYPE_NAME");int precision = columnRes.getInt("PRECISION");// pass this info on to another method}The dataType is set to the type returned from the procedure not to thetype for the param.Am I doing something stupid here? Did I create my stored procedurewrong?Any help would be appreciated.Thanks.Jon
My configuration is as follows.I have a Linux MySQL server database on one box andI want to connect to it from a local Windows XP laptop.My application was developed using SunOneStudio.I have registered the DSN and tested the database connection via ODBCin Windows XP.It apparently connects from XP to the server.I have compiled two base classes and have a tester class whichcompiles except for the following compiler error:PathTesterOne.java [19:1] cannot resolve symbolsymbol : variable pathologlocation: class PathTesterOneConnection c = patholog.initialize();"patholog" is the Database Name on the Linux MYSQL server.the initialize method looks like this....// establish the database connectionpublic static void initialize(){aMenu = new MainMenu();try{ // load the jdbc - odbc bridge driver for WindowsClass.forName("com.mysql.jdbc.Driver");// create connection instanceaConnection = DriverManager.getConnection(url, "username","password");// create statement object instance for this connectionaStatement = aConnection.createStatement();}catch (ClassNotFoundException e){System.out.println(e);}catch (SQLException e){ System.out.println(e); }}// The Data Source name is "patholog"static String url = ("jdbc:mysql://192.168.1.101/test?user=jerald&password=wein3150");static Connection aConnection;static Statement aStatement;Why am I not able to connect to the database?I am not understanding what the source of the error may be.Thanks for any help
have a Java Class that I want to be able to access from within a SQL Server Stored procedure. I know we can access C# and other .NET Framework code, but how can you access a Java Class?
I want to call a stored procedure (SQL SErver 2000) from JAVA. The SP contains a temporary Table. At the end of the SP there is a Select like "Select * from #tmp".
Now I get no Resultset in my JAVA - Application. When i do a normal Select on an Table I get a Resultset.
I need the temp. Table in this SP. How can I get the Result in JAVA. It is urgent for me.
Hi.. We have a java application which connect to our MS-SQL DB during midnight using JDBC connector and extract information. But very often ,the java applicatian halted and because of the deadlock as shown below.
Caused by: java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]Transaction (Process ID 54) was deadlocked o n lock resources with another process and has been chosen as the deadlock victim.
now the java programmer is blaming me that the MS SQL DB is having deadlock and cause their Java application to hang.
Is there any way to clear the deadlock before the the Java applcation run or how to prove the Java application script itself is having problem and causing the deadlock ?
I am working on a hospital application using java programming language, i need to know how to connect two applications to one table over a network where the data read by application one can not be read by application 2 and vise versa...