Visual Studio Development Bookmark and Share   
 index > Visual Studio WPF Designer > connect to sql server and run script
 

connect to sql server and run script

Hi there. I'm new to Visual Studio,and onlyhave some basic knowledge of using VBA in excel. I've been given a little project at workfor a user to entre a code into a text box, and when they click a button the applicationconnects to a sql server and runs a sql script.

I have tried various things andfelt close(ish), but haven't got it to work. These are some of the things I've tried (in brief): I've managed to link the application to the sql server, and I've inputted the sql script (in various different ways) and have successfully got that to work, but can't seem to link it to the button in the Form design. I have also tried to write the code, but have not managed to get that to work either.

Is there an easy, drag and drop way to do this is visual studio? I've searched so hard on the internet, but have had no joy.

Thanks for your help in advance!!!

Von
Vonsa  Wednesday, September 02, 2009 2:44 PM
Von,

What type of application are you creating, example: Windows Forms, WPF, Console application?
Cheers, Karl - Microsoft Product Team, Code Project MVP - http://karlshifflett.wordpress.com/
karl140.6  Wednesday, September 02, 2009 4:48 PM

You can use google to search for other answers

Custom Search

More Threads

• Sudden problem editing anything in VS 2008 SP1 XAML Designer
• Setting CheckedEvent in CheckBox.
• Cider and VSTA IDE
• WindowStyle=None and Grid problem in VS 2008 IDE...
• design time features in feb. ctp
• Can not create instance of type CourseSelector
• Editing controls in XAML loses event handlers that exist in the Code Behind
• Can't read Y coordinate value when resizing window in Designer
• StaticResouce on UserControl blanks out WPF Designer
• relating user controls