LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

API to make connection of UDL with mdb

API to make connection of UDL with mdb,

by programming in run time i want to make mdb file and make Link with UDL file. programmatically.

Prashant Soni
LabVIEW Engineer
0 Kudos
Message 1 of 8
(3,328 Views)
Do you have the database connectivity toolkit?
_________________________________________________________________________________________________

That glass?

Thats glass is neither half full or half empty....
Its twice the size it needs to be
0 Kudos
Message 2 of 8
(3,319 Views)
yes i have...
Prashant Soni
LabVIEW Engineer
0 Kudos
Message 3 of 8
(3,312 Views)

Ok then, linking to a udl should be fairly straightforward then.

 

I'll have a think, not going to have a chance to properly look until monday mind...

 

Have you got any progress of your own?

_________________________________________________________________________________________________

That glass?

Thats glass is neither half full or half empty....
Its twice the size it needs to be
0 Kudos
Message 4 of 8
(3,303 Views)
Since you have the toolkit, you just to look at the shipping examples in order to learn how to use a udl file. As far as creating a database itself, as opposed to a new table, I don't think you can do that. It would be specific to whatever database you are using and is not part of the SQL language. So, in your case, you could use Access's ActiveX interface to create a new jet database.
0 Kudos
Message 5 of 8
(3,292 Views)

Been thinking this over in my head...

 

For creating a table you could link to a stored procedure using a parameterized query vi.

 

One of the parameters would have to be table name, another would have to be target database.

 

Im really unsure about creating the UDL programatically, I think this may be your sticking point.

_________________________________________________________________________________________________

That glass?

Thats glass is neither half full or half empty....
Its twice the size it needs to be
0 Kudos
Message 6 of 8
(3,266 Views)
Creating a new table is simply done with the CREATE TABLE command. The op however, stated a desire to create a new database and that is an entirely different task.
0 Kudos
Message 7 of 8
(3,262 Views)

Well, there is a CREATE DATABASE command in SQL, but I've never used it, as I use Enterprise Manager to create database in SQL Server.

 

However, I agree that the poster really needs to explain better. These terse statements are too ambiguous.

0 Kudos
Message 8 of 8
(3,252 Views)