Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 Reporting Services Development
 SQL Server Application Connection

Author  Topic 

mivey4
Yak Posting Veteran

66 Posts

Posted - 2008-12-10 : 19:47:31
I am modifying an application to use a database file that I created locally on my system. The application was initially using an MS Access database but due to some field restrictions of Access I wanted to get away from it.

My question: Is there any way to attach to the datafile with a connection string and exclude the server name? My reason for this is that I want to make the program portable enough to use on any system without the necessity of the user having SQL server installed. Also I don't want to complicate the methodolgy of making the connection by having the user modify a config file if they were to have SQL server installed.

I can't find any connection strings that I can use that don't have the Server name or IP address required.

Can this be done or am I thinkin' wrong???

Maybe I should re-consider my choice for the database?

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-12-10 : 19:52:42
You must have SQL Server installed in order to use the datafile. It's worthless otherwise.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

mivey4
Yak Posting Veteran

66 Posts

Posted - 2008-12-10 : 20:00:10
Thanks tkizer, I was afraid that was going to be the answer. Any recommendations. I need something portable as Access but a bit more robust. My app crashes when the text field is greater than 255 characters.

thx again!
Go to Top of Page

tkizer
Almighty SQL Goddess

38200 Posts

Posted - 2008-12-10 : 20:02:28
Access can handle more than 255 characters in a text field. I'd post your question in the Access forum here so that someone can help you with Access. I am a SQL Server DBA and have little to no knowledge of Access.

Tara Kizer
Microsoft MVP for Windows Server System - SQL Server
http://weblogs.sqlteam.com/tarad/

Subscribe to my blog
Go to Top of Page

mivey4
Yak Posting Veteran

66 Posts

Posted - 2008-12-10 : 20:13:48
Sorry, you're correct. I'll ask in an Access Forum. Too bad SQL won't work for me but thanks for the advice.
Go to Top of Page
   

- Advertisement -