I'm wondering if anyone could point out what this export window (no.3) is trying to ask?
I'm SQL noob and I'm hoping I could get a direction from someone about where to start...
I hope to download data to SQL, basic query and use Python to do more stuff (I'm more familiar with it).
Thank you!
It is a UI of a Universal Data Link (UDL) file on a machine with Windows OS.
First tab contains available installed OLEDB Providers. You need to
select one of them first.
Second, i.e. current tab allows to configure database connection. The 'Test Connection' allows to test that connection.
Related
I am running Neo4j locally and VB.NET coded software. Right now I have to open the database with Neo4j community in advance of running the software. I'd like to be able to open the database from within the .NET code, like I can with other databases (MS SQL Server, Oracle, DB2, etc.). I cannot find any documentation on how to do this with Neo4j. Of course, I'd also like to check its status and close it from code too.
Appreciate any suggestions. Thanks.
Dave
I am new to working with an AS400 green screen terminal and I am running some queries through the STRSQL command.
However, I cannot figure out how to clear the terminal screen to get rid of the past queries that were run.
An analogy; if im running command prompt and the screen gets too cluttered, i can run 'cls' to clear the screen. Is there a simular command on AS400?
You can press Shift-F1 (F13) and select option 3 "Remove all entries from current session". Then press Enter to confirm.
EDIT: Short answer: No. <- This is incorrect.
Long answer: you probably don't want to use STRSQL anyway. Use iNavigator (also on its way out) or IBM i Access for Web, which has a database interface. Another IBM offering is Data Studio. Alternatively, you could use any number of third party database tools like SQuirreL to do design work or for ad hoc queries. Basically, anything that uses ODBC / JDBC will work.
As a side note, the platform hasn't been called AS/400 for 20 years. Google searches for AS/400 are increasingly returning worse and worse results. A more modern name (only 10 years defunct) is iSeries. The current operating system is called IBM i, and the IBM web site is called the Knowledge Center. It's true that 'IBM i' doesn't yield the best search results, but that will never change unless we start using the term on the internet :-)
I use STRSQL all the time to prove an SQL statement either in my RPG or Web-based pgm.
I don't like clearing the historical statements because sometimes I find a hint, or a technique that I may need to reference again at some point.
With all that being said...
If your screen is "crowded" and you just want a brand new screen - simply page-down.
I've created a new database using Microsoft SQL Server Management Studio, and now I want to interact with it through LabVIEW. I already have several VIs to interact with a previous database, using the database connectivity tool kit. This database was created by someone who has since left the project and I can't find it in anything but LabVIEW.
I'm quite experienced with LabVIEW, but completely new to and bewildered by databases.
Thank you in advance.
The first Connectivity Toolkit VI called should be Open Connection.
The existing code (VI) will either use a file or a string as an input.
If the input is a string, then you will need to create a new connection string compatible with your server. You can find common SQL Server strings at https://www.connectionstrings.com/sql-server-2008/
If the input is a file name, you can copy the .UDL file that is referenced and then modify the copied file by opening it (double click) and then select the OLE DB Provider for SQL Server and then set the connection options to point to your server, database etc. and then test the connection.
Basically the workflow you have to go through is the following:
Open connection
Execute your query
Fetch data (if needed)
Close connection
If you search for "Database" in the NI Example Finder shipped with Labview you will find a few good starting points.
In particular give a look to Database Connection.vi and Database Fetching.vi.
If you plan to use transactions try also Database Transaction.vi.
I found that the solution to my problem was to create a .udl file and use that as the file path for opening the database connection.
Here's the address that taught me how to do this:
http://msdn.microsoft.com/en-us/library/e38h511e(v=vs.71).aspx
Thank you to everyone who submitted answers, they certainly helped point me in the right direction.
I'm writing a desktop application that uses the main access database that will be hosted on a central server, but there will be a laptop with the app on that has an offline mode so records can be created offsite. When the laptop returns I want it needs to be synced back to the main database.
Has anybody got any pointers on a way to do this, I've briefly read about JRO but is there an alternative / better method?
Originally, I was just going to write some custom code to do this, but thought I'd check to make sure there wasn't something already out there.
Jet Replication is a perfect solution for this kind of scenario, because you can use the simplest form of it, Direct Replication, and don't need to have any outside dependencies.
Assuming your server is named \HomeOffice\ and the database is named "MainDatabase.mdb" and is stored in the \AccessDatabases\ folder, you could use this code behind a command button to synchronize from the laptop to the server:
Dim dbServer as DAO.Database
Set dbServer = DBEngine.OpenDatabase("\\HomeOffice\AccessDatabases\MainDatabase.mdb")
dbServer.Synchronize CurrentDB.Name
dbServer.Close
Set dbServer = Nothing
Now, there's no error handling, and you haven't checked for conflicts, so you'd need to do more than that, but that would get you started with the basics.
See the Jet Replication Wiki for lots more information on Jet Replication.
Access (at least through 2003) has built in capabilities to replicate a database that would be far better to use than rolling your own.
Here's some documentation on that feature: Database Replication
MS Sync Framework could be the answer, but it's a bit tricky to set up... http://msdn.microsoft.com/en-us/sync/bb821992
There is the Microsoft Sync Framework that is compatible with ADO.NET and MS SQL Server / SQL Server Compact, but that's not a small component, more like a multi-component framework.
Does anyone have any experience of developing external tools for SSMS 2005.
Ideally I would like to be able to interact with the query windows directly, for example, taking the query text from the window to perform some processing on it.
Any pointers in the right direction would be great.
Thanks in advance
Very late entry...
Example of how to do it here
And here too
Have you looked at Sql Server Management Objects (SMO)?
http://msdn.microsoft.com/en-us/library/ms162557.aspx
The best example of this I have seen for SSMS is SQL Prompt by Red Gate
SQL Prompt runs a seperate .NET app that sits in your systray and is in some way part of the magic of the integration.
For loading an add-in, you will want to create a key under:
HKLM\SOFTWARE\Microsoft\Microsoft SQL Server\90\Tools\Shell\AddIns\
...in order to have SSMS load your add-in.
Hope this helps
This link explains adding external tools to ssms with screen shots.
It also has procedure to add them as a button.
http://sqlserverlearner.com/2011/sql-server-external-tools