Showing posts with label instead. Show all posts
Showing posts with label instead. Show all posts

Monday, March 12, 2012

Problems with JDBC

I downloaded the latest version on JDBC from Microsoft and I got problems.
Indeed, when fetching a smallint from SQL Server i got instead an Integer.
How can i do to avoid such a problem?
Some hints?

many tanks, gaetano"okai" <okai@.lycos.it> wrote in message news:bg3da5$fe7$1@.news.mch.sbs.de...
> I downloaded the latest version on JDBC from Microsoft and I got problems.
> Indeed, when fetching a smallint from SQL Server i got instead an Integer.
> How can i do to avoid such a problem?
> Some hints?
>
> many tanks, gaetano

I don't know anything about JDBC myself, but there is a dedicated newsgroup
for this, so you might get a better answer there:

microsoft.public.sqlserver.jdbcdriver

Simon

Monday, February 20, 2012

Problems when connect sql2005 locally

Hi All,

When I use asp.net 1.1 to connect sql 2005 enterprise server which just enable local access option instead of remote, I got error message to say database server is not avaiable. I use following connection string

user id=abc;password=abc;server=(local);Integrated Security = SSIP;

user id=abc;password=abc;server=.;Integrated Security = SSIP;

Actually, I used default instance, and ASP.Net and database server are in same server. Everything is fine when I change connection string as

user id=abc;password=abc;server=servername;Integrated Security = SSIP;

Frank,

This is a known issue when SS25 does not have TCP on, the client is using MDAC/Everret(.Net1.1) OLEDB provider. For connection sting like (local) or “.”, the connection will fail.

One of the workaround, if TCP/IP is off, is to use hostname in connection string that will connect you through named pipe provider, which is what you have seen.

Thanks,

|||

One more note is that if you can't change the your applications and they use "(local)" and "." in connection string, you can create aliases for "(local)", and "." using tools like cliconfg.exe or SQL Server Configuration Manager.

Please also not that the the there is a typo in your connection string, it should be "SSPI" instead of "SSIP".