Hibernate configuration for MS SQL Server 2012 Standard - sql-server

i am new to hibernate and need to configure it for MS SQL-server 2012 standard.
i found this deprecated article how to configure hibernate config file for sql server but i need a new one. where i can find the driver for the new database (if there is any)!
thanks for answers

I was able to get it working with Microsoft JDBC Driver 4.0 for SQL Server as seen here.
jTDS didn't work although it had previously worked with the same settings on SQL Server 2008 R2.
A couple config lines which MS JDBC 4.0 requires.
jdbc.driverClassName=com.microsoft.sqlserver.jdbc.SQLServerDriver
jdbc.url=jdbc:sqlserver://localhost:1433;

No need to give the user,password and database name in separate property tags,you can keep all of them inside url named proprety tag.
Inside Hibernate configuration file you can write like this:-
<property name="connection.url">jdbc:sqlserver://myhost;user=user1;password=pass1;database=Student1</property>
where user1,pass1,myhost and Student1 are my credential, you can replace them by yours.

to close the question: i am using oracle now. not because ms is not working...
the upper config could work...

Related

How to connect VS 2019 localdb to SSMS

I am creating an on-line shop project using .NET Core 3.0 and Entity Framework Core. I have set up the applicationContextDb and the connection string in appSettings.json.
The application works just fine adding products, and these products show up in my localdb in VS2019. I need it to connect to my localhost SQL Server instance in SSMS as it will be easier in the future to manage the online shop and see the data, but I don't know how to do that and I cannot find much information about this out there. Does anyone have an idea on how to do this?
I have tried to change the name from localdb to localhost, and obviously changing it too in the connection string, but it throws an error saying that it cannot find the network path.
To connect to a local default SQL Server instance (which I agree is easier in the long run than localDB), use a connection string like:
"Server=localhost;database=YourDatabaseName;Integrated Security=true"
A named instance like
"Server=localhost\SqlExpress;database=YourDatabaseName;Integrated Security=true"
Of course you have to install the SQL Server instance before this will work. You can install using the Developer Edition or Express Edition available for free download here.
After pointing to the new instance, you'll need to run your Migrations, or run myDbContext.Database.EnsureCreated() to generate the DDL for your EF model. Or copy the .mdf/.ldf into your SQL Server's data directory and Attach the database in SSMS.

Does Geoserver support SQL Server 2016?

I have a geometry layer stored in SQL Server 2016. I've downloaded Geoserver's plug-in from the web site.
Geoserver Documentation clearly states that Geoserver doesn't support SQL Server on default. I've followed the instructions and I was able to see Microsoft SQL Server as a data source.
When I try to connect to my SQL Server the interface is just different from documentation. It doesn't even ask any user credentials and the name of the data source is also different from documentation.
The interface;
My question is Geoserver doesn't really support SQL Server 2016 or am I doing something wrong ?
Thanks
H.
A JNDI connection should already be configured with the connection parameters in the web servlet container (tomcat, jetty, etc). Therefore geoserver doesn't need to ask again. Maybe what you need is the JDBC connection next to it in the list.
I'm not sure if anyone has tested it with sqlserver 2016 but feel free to update the documentation if you find it does (or if it didn't work too).

Pentaho biserver using sql server DB installation

I'm new in this field, please kindly help me.
I'm installing pentaho biserver for community in my notebook. At first, it's succeed (with default configuration) like this. but, when I'm trying to change the database with ms sql server like this tutorial,
help.pentaho.com/Documentation/5.4/0F0/0K0/040/0D0
an error occurs:
Can anybody tell me what's wrong with the installation?
I'm using:
Sql server developer edition 2014
pentaho biserver community 4.8.0
apache-tomcat-8.5.3
jdk8
sql server driver sqljdbc42.jar and I put it under \biserver-ce\tomcat\lib
I also try something like Using Pentaho Community Edition with SQL Server 2005 but still not working.
switch to default configuration. no need to do anything. while creating Datasource connection Pentaho provides option for connecting to different RDBMS database.You just need to place JDBC connector file into lib directory.

How do I create/add a sql server compact edition db in vs2010?

I have vs2010 ultimate installed and sql server 2008 developer. I created a package using the openAuth Extension from the online gallery and can not find an option to add a sql server CE db to my project. I tried changing the target framework to 4.0 and still nothing.
I see a type that says SQL Server Database, but I believed that was for a full blown db to attach to sql server.
Where is compact?
You first need to add it in the Server explorer even if it's new.
Here is the link on how to do it.
link text
If you mean to this:
http://i.imgur.com/NcmH1.png
I fix my problem running SSCEVSTools-esn.msi from the vs2010 dvd.
D:\Visual Studio 2010\WCU\SSCE

Connecting to SQL Server using Delphi and dbExpress

I use RAD Studio 2010 including latest updates 4 and 5, my database is SQL Server Express.
I set up a TSQLConnection but it won't connect, error message is "DBX-Error: the driver could not be initialized correctly. A client library may be missing, may not be installed correctly, or may have the wrong version" (error messagetranslated from German).
Connecting to the database via TADOConnection works fine with both ADO drivers ("Microsoft OLE DB Provider for SQL Server" and "SQL Native Client").
Can anybody give me a hint how to connect via dbExpress?
you need to install the sql native client, if you read the read me that comes with RAD studio 2010 its says that it is a requirement for connecting to sql server 2000/2005/2008
I’ve also discovered that in dbxdrivers.ini they haven’t added the proper option for MSSQL 2000/2005 you need to edit the top bit to add in MSSQL9=1
example:
[Installed Drivers]
DBXTrace=1
DBXPool=1
BlackfishSQL=1
DataSnap=1
ASA=1
ASE=1
DB2=1
Firebird=1
Informix=1
Interbase=1
MSSQL=1
MSSQL9=1
MySQL=1
Oracle=1
you can then select MSSQL9 as a dbExpress option and it should also appear in data explorer as well
I had a similiar issue with Delphi XE2 ad SQL Server 2005. I uninstalled and installed several versions (including MSSQL 2008 R2) of SQL Native Client to no avail. But adding MSSQL9=1 to the ini file worked.
Maybe this thread on the EDN (Embarcadero Developer Network) can be helpful.

Resources