Find your people. Pick a challenge. Ship something real. The CreatorCon Hackathon is coming to the Community Pavilion for one epic night. Every skill level, every role welcome. Join us on May 5th and learn more here.

Insert a record in an external database from a script include ( without using MIDServer / JDBCProbe / Orchestration)

praveenmuramal1
Kilo Expert

Hello Community,

Can someone point me to an example or provide code snippet to make a JDBC Connection and do a sql insert ?

I am trying to insert a record into a table that exists in external database from script include. All the examples I could find are using MIDServers JDBCProbe.

I can't use

Webservice - ( Reason : External Database don't have support for this)

MIDServer - ( Reason : No Mid Server )

JDBCProbe - ( Reason : No Mid Server )

Orchestration - ( No subscription for Orchestration )

Thanks,

Praveen

1 ACCEPTED SOLUTION

Patrick Schult2
Giga Guru

I don't think you have a way to do this without the use of a MID server. You mentioned that you don't currently have a MID server. Have you considered just...getting one? There's no cost or licensing other than the computer you install it on (if you have to buy one or spin up a VM). It's useful for plenty of things, and there is something to be said about avoiding the "square peg / round hole" situation.


View solution in original post

8 REPLIES 8

Patrick Schult2
Giga Guru

I don't think you have a way to do this without the use of a MID server. You mentioned that you don't currently have a MID server. Have you considered just...getting one? There's no cost or licensing other than the computer you install it on (if you have to buy one or spin up a VM). It's useful for plenty of things, and there is something to be said about avoiding the "square peg / round hole" situation.


Patrick, Thanks for the clarification. We are going towards the path of not using MID server.


Hi Patrick,

 

Actually I am trying to move servicenow Table data to sql server. Kindly let us know the steps.

 

Thanks for your help.

Regards,

Sreenivas

Check out a tool called SnowMirror - it's designed for this purpose.

 

If you are looking for a more "free" solution, you could set up Export Sets on your instance to export to a MID server's export directory. You would then have your SQL server import the CSV on a recurring basis.