Connection Wizard or Hardcoding datasource


Author
Message
Mike Thomas
Mike Thomas
StrataFrame Beginner (36 reputation)StrataFrame Beginner (36 reputation)StrataFrame Beginner (36 reputation)StrataFrame Beginner (36 reputation)StrataFrame Beginner (36 reputation)StrataFrame Beginner (36 reputation)StrataFrame Beginner (36 reputation)StrataFrame Beginner (36 reputation)StrataFrame Beginner (36 reputation)
Group: Forum Members
Posts: 26, Visits: 82
i am using sql server ce 3.5  my oledb provider is Microsoft.SQLSERVER.CE.OLEDB.3.5.  how do i modify appmain.vb to use this?  i don't think the connection wizard handles this but i could be wrong.  can someone step this beginner through whats necessary to hook my app up to the compact edition? 

Thanks in advance!

Mike

Replies
Keith Chisarik
Keith Chisarik
StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)StrataFrame VIP (2.4K reputation)
Group: StrataFrame Users
Posts: 939, Visits: 40K
Trent is right naturally, anything but a very simple app or disconnected feature would be better with Express.

That being said, my current project is VERY simple as far as data goes as it mostly does scanning and image manipulation, and will be single workstation only, so SQL Compact I think will be the right choice based on past experience with it.

The attachment is a very simple working sample that uses SF 1.6.6, the ADO .NET Provider for SQL Compact 3.5 (had issues with OLEDB updates I couldnt get past) included with VS2008, and the System.Data.SQLServerCE namespace used to create a SQLCEDataSourceItem. I tested with OptomisticRowVersion since that is what I use. Just slap the SDF file in the ZIP onto the root of your C drive and it should work. Good luck and I hope it helps someone.

Keith Chisarik

Attachments
SQLCE with SF.zip (174 views, 1.00 MB)
Trent Taylor
Trent Taylor
StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)StrataFrame Developer (14K reputation)
Group: StrataFrame Developers
Posts: 6.6K, Visits: 6.9K
Thanks for the contribution, Keith.  You may want to add this to the user contributed samples area...I think that this would be a good fit Wink
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Threaded View
Threaded View
Mike Thomas - 17 Years Ago
Trent L. Taylor - 17 Years Ago
Mike Thomas - 17 Years Ago
Greg McGuffey - 17 Years Ago
Mike Thomas - 17 Years Ago
                         I just searched through the object browser and I don't find this...
Greg McGuffey - 17 Years Ago
                             Thanks. I hope Trent can clarify for us.
Mike Thomas - 17 Years Ago
Keith Chisarik - 17 Years Ago
Keith Chisarik - 17 Years Ago
             I hope someone can help soon:) :)
Mike Thomas - 17 Years Ago
Keith Chisarik - 17 Years Ago
Mike Thomas - 17 Years Ago
Ivan George Borges - 17 Years Ago
                         [quote]PS - Cowboys 21 - Eagles 30 Monday night [/quote] Well...you...
Trent L. Taylor - 17 Years Ago
                             Oh...and Ivan's suggestions look good, Mike:D
Trent L. Taylor - 17 Years Ago
                             Thank you will try. Do you know if by getting that error that...
Mike Thomas - 17 Years Ago
                                 Well, Ivan was telling you how to get back to ground zero. The...
Trent L. Taylor - 17 Years Ago
Trent L. Taylor - 17 Years Ago
Mike Thomas - 17 Years Ago
Ivan George Borges - 17 Years Ago
                         Two apps i have in mind...one is for the home market and I was...
Mike Thomas - 17 Years Ago
                             Distributing SQL Express is extremely easy. In fact, if you use a tool...
Trent L. Taylor - 17 Years Ago
Trent L. Taylor - 17 Years Ago
Keith Chisarik - 17 Years Ago
Trent L. Taylor - 17 Years Ago
Keith Chisarik - 17 Years Ago
Keith Chisarik - 17 Years Ago
Mike Thomas - 17 Years Ago
Keith Chisarik - 17 Years Ago
Keith Chisarik - 17 Years Ago
Trent L. Taylor - 17 Years Ago
Mike Thomas - 17 Years Ago
Keith Chisarik - 17 Years Ago
Keith Chisarik - 17 Years Ago
Trent L. Taylor - 17 Years Ago
Marcelo Blank - 12 Years Ago
StrataFrame Team - 12 Years Ago

Similar Topics

Reading This Topic

Login

Explore
Messages
Mentions
Search