Click here to Skip to main content
15,881,882 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How to connect Sql Server database using Universe Basic Code and to perform Select, Insert and update operation using Universe Basic. Please provide me sample code.

Thanks in Advance
Posted
Updated 4-Jan-12 2:12am
v2
Comments
Sergey Alexandrovich Kryukov 4-Jan-12 15:49pm    
Universe? Universe Basic? Sorry, what is that?
--SA
Balakrishnan Dhinakaran 5-Jan-12 0:06am    
Universe Basic is also a technology used for Software Development.

CSS
Step 1: Open Universe Shell prompt.

step 2:
 Add connection string in config file which resides in  C:\U2\UV/uvodbc.config
 as

     <stud>
     DBMSTYPE = ODBC
     network = LAN
     service = ABC\SQLEXPRESS
     host = localhost

Step 3: enter command "CONNECT stud" in Universe Shell prompt.

  Now Shell propt will ask for
     Enter username for connecting to 'stud' DBMS [DOMAIN_Name\User_name]:
     Enter password for DOMAIN_Name\User_name:
 (Press enter if it is windows authentication)

Step 4: If SQLState = 00000 then data source connected successfully.

Step 5: Enter SQL Queries.

Step 6: To exit enter ".q" and press "ENTER"
 
Share this answer
 
Comments
Wendelius 5-Jan-12 15:41pm    
5+
Balakrishnan Dhinakaran 6-Jan-12 0:15am    
Thank you Mika Wendelius
If you're referring to U2 servers, you could use ODBC. For example: http://www.easysoft.com/applications/ibm-universe-unidata/odbc.html[^]
 
Share this answer
 
Comments
Balakrishnan Dhinakaran 5-Jan-12 8:52am    
My vote is 4 because this is a third party tool for connecting
Wendelius 5-Jan-12 15:40pm    
Thanks for the comment. Yes it's a 3rd party tool but at least free :)

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900