Link to home
Start Free TrialLog in
Avatar of ex_02
ex_02

asked on

TSQLConnection to SQL Server file

Hey all

just wondering with the dbexpress component TSQLConnection what parameters do i need if i want to connect to directly to a SQL Server .MDF File.



currently i just work on registered databases with the paramters

User_Name
Password
HostName
Database (which is just the name of a registered database)

but want to work on unregistered databases with just their data file

any ideas?
ASKER CERTIFIED SOLUTION
Avatar of JesterToo
JesterToo
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of ex_02
ex_02

ASKER

What if the MDF file is not registered with SQL Server can you connect to the file then?

Avatar of Racim BOUDJAKDJI
To be able to exploit an MDF file you need at least a DBEngine that can interpretate its structure.  In that sense the DB Engine is a necessary API for exploiting and making sense of the data stored in the file.  Hope this helped...

Racimo
so its just a sql sever specific? cause with interbase i can open a file no worries just askes for a .gdb was hoping sql server would be the same :)


but its obviously not ??
I'm not familiar with Interbase but I have a great deal of experience with MS SQL Server and other RDBMS's... all of them that I know about work as I described above.

-- Lynn