RaSor's Tech Blog

January 18, 2010

Microsoft offerings – and BizSpark content

Filed under: Access, Apps, Biztalk, Databases, Deployment, NET, Network, Sharepoint, SQL, Visual Studio — rasor @ 6:02 am

Was looking for a Microsoft offer that could give OS’s and Servers to play with at home. Found a few interesting programs: 

(more…)

October 29, 2009

OLEDB: Create connection string

Filed under: Access, Administration, Databases, SQL — rasor @ 7:20 am

A little trick to create a OLEDB connection string:

  • On a Windows desktop (or any other folder) create a new text file.
  • Rename the file to MyNewConnection.udl
  • Double click the file which will open the guide Data Link Properties.
  • Insert your connection data, test the connection and close the guide by pressing OK
  • Open the file in your favorite text editor and view the connectionstring

Examples of generated connection strings:

  •  Provider=SQLOLEDB.1;Password=MyPsw;Persist Security Info=True;User ID=MyUser;Initial Catalog=MyDb;Data Source=mydbserver\mydbinstance
  • Provider=MSDASQL.1;Persist Security Info=False;MyUser ID=user1;Data Source=MyOdbcDsn;Initial Catalog=MyDB

Thanx to Rakesh Moturi

The End

March 29, 2008

HowTo: Import data to SQL from password protected MDB

Filed under: Access — rasor @ 2:35 pm

SQL server Mgt Studio:

  • Select DB – Right click DB – Tasks… – Import data…

=> SQL server Import Wizard opens

  • Choose a datasource – Write name – Press Advanced…

=> Datalink Properties opens.

  • Tab: “Connection”: Username: “” (Blank)
  • Tab: “Connection”: Check “Blank Password”
  • Tab: “All”: Jet OLEDB:Database Password: ******* (Enter password)
  • Tab: “Connection”: Press “Test Connection”

HowTo: Link to a table in SQL server

Filed under: Access — rasor @ 2:34 pm
From Access:

  • Right-click “Tables” – “Link Tables…” – Scroll to file type “ODBC …” – Select desired DSN or create a new one – Select the desired tables – for each table select a column to be unique key
  • Rename the linked tables: Remove the prefix dbo_

HowTo: Export tables from Access to SQL Srv

Filed under: Access — rasor @ 2:33 pm
  • In Access right-click the source table – “Export…” – “SaveAs” – choose “ODBC” in the bottom of the list – choose default table name – “OK”
  • If DSN doesn’t exist create a new “Machine Data Source” (System) – choose driver “SQL server” in the bottom of the list – “Next” – “Finish” – Choose a name for the connection and choose a SQL server – “Next” – “Next” – Change default DB to the target one – “Next” – “Test Connecttion”
  • “OK”

HowTo: Change linked mdb-table to another location

Filed under: Access — rasor @ 2:31 pm

In Access:

  • Tools -DB Utils – Linked table mgr:
    - Select mdb to relink
    - check “Allways…”
    - Browse to the new mdb file

HowTo: Open .mdb object form

Filed under: Access — rasor @ 2:29 pm
On a password secured app: 

HowTo avoid to open a .mdb file with a limited startup menu and with the object form available:
- Hold down shift:

  • when opening the .mdb file
  • when pressing OK after entering psw

Theme: Silver is the New Black. Blog at WordPress.com.

Follow

Get every new post delivered to your Inbox.