Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: Stephens' Visual Basic Programming 24-Hour Trainer
This is the forum to discuss the Wrox book Stephens' Visual Basic Programming 24-Hour Trainer by Rod Stephens; ISBN: 978-0-470-94335-9
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Stephens' Visual Basic Programming 24-Hour Trainer section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old May 1st, 2014, 05:31 PM
Authorized User
Points: 82, Level: 1
Points: 82, Level: 1 Points: 82, Level: 1 Points: 82, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2014
Posts: 19
Thanks: 4
Thanked 0 Times in 0 Posts
Default Database connection issues

Hi,

I am trying to follow the steps in lesson 39. When I create the orderContext and then create the customerQuery, I don't see all the options for orderContext such as AcceptAllChanges. I only see a very few of them. I use visual studio 2012 professional.

I have SQL Server 2014 management studio, but I didn't download any .Net framework. Could that be why?

Thanks in advance!
shabnam
 
Old May 1st, 2014, 07:17 PM
Authorized User
Points: 82, Level: 1
Points: 82, Level: 1 Points: 82, Level: 1 Points: 82, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2014
Posts: 19
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Update:
I continued with the try-it example regardless, and my datagridview doesn't display anything. The code runs without an error except for the part that has:
Code:
        DataGridView1.Columns("CustomerId").Visible = False
        DataGridView1.Columns("Customer").Visible = False
        DataGridView1.Columns("OrderItems").Visible = False

I appreciate your help.
 
Old May 2nd, 2014, 10:38 AM
Authorized User
Points: 82, Level: 1
Points: 82, Level: 1 Points: 82, Level: 1 Points: 82, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2014
Posts: 19
Thanks: 4
Thanked 0 Times in 0 Posts
Default

OK; here I found the answer to this very tricky problem:
http://msdn.microsoft.com/en-us/data/jj556581

It seems that visual studio 2012 has that issue.

Shabnam
 
Old May 2nd, 2014, 01:11 PM
Rod Stephens's Avatar
Wrox Author
Points: 3,166, Level: 23
Points: 3,166, Level: 23 Points: 3,166, Level: 23 Points: 3,166, Level: 23
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jan 2006
Location: , , .
Posts: 647
Thanks: 2
Thanked 96 Times in 95 Posts
Default

Hi Shabnam,

Sorry I didn't have a chance to get back to you sooner.

I'm glad you figured this out. I hadn't seen this problem before and it's good to have the link you posted in case others have similar problems. On behalf of anyone who has this problem in the future, Thanks!
__________________
Rod

Rod Stephens, Microsoft MVP

Essential Algorithms: A Practical Approach to Computer Algorithms

(Please post reviews at Amazon or wherever you shop!)
 
Old May 2nd, 2014, 01:35 PM
Authorized User
Points: 82, Level: 1
Points: 82, Level: 1 Points: 82, Level: 1 Points: 82, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2014
Posts: 19
Thanks: 4
Thanked 0 Times in 0 Posts
Default

Sure; I hope it helps someone else too. I spent quite a few hours until I finally found it.




Similar Threads
Thread Thread Starter Forum Replies Last Post
connection string issues, web.config file issues kaliaparijat ASP.NET 2.0 Professional 1 June 12th, 2008 08:07 AM
DataAdapter Connection string issues.... lochoa .NET Framework 2.0 0 January 30th, 2007 10:03 AM
SQL Connection/Database Issues fs22 ASP.NET 2.0 Basics 0 August 1st, 2006 03:17 PM
Connection issues with ADP file tdl6281 Access 7 June 19th, 2004 01:54 PM
Connection issues from an Access project VBAHole22 SQL Server 2000 2 June 13th, 2003 08:15 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.