|
|
nitish_07 wrote: cmd = new OdbcCommand(abc, cn);
Your problem is that you did not read the error message, nor the manual that the error is referring to.
using (cmd = cn.CreateCommand())
{
cmd.CommandText = "EXEC abc()";
cmd.ExecuteNonQuery();
}
I don't want to see this question coming back
Bastard Programmer from Hell
|
|
|
|
|
Good eye!
The difficult we do right away...
...the impossible takes slightly longer.
|
|
|
|
|
There is another faux pas OP committed. Not reading the MSDN documentation on EXEC / EXECUTE diligently:
[ { EXEC | EXECUTE } ]
{
[ @return_status = ]
{ module_name [ ;number ] | @module_name_var }
[ [ @parameter = ] { value
| @variable [ OUTPUT ]
| [ DEFAULT ]
}
]
[ ,...n ]
[ WITH <execute_option> [ ,...n ] ]
}
[;]
Execute a character string
{ EXEC | EXECUTE }
( { @string_variable | [ N ]'tsql_string' } [ + ...n ] )
[ AS { LOGIN | USER } = ' name ' ]
[;]
Execute a pass-through command against a linked server
{ EXEC | EXECUTE }
( { @string_variable | [ N ] 'command_string [ ? ]' } [ + ...n ]
[ { , { value | @variable [ OUTPUT ] } } [ ...n ] ]
)
[ AS { LOGIN | USER } = ' name ' ]
[ AT linked_server_name ]
[;]
Parenthesis () are only allowed when executing indirectly via a string variable or string literal.
Regards,
Manfred
|
|
|
|
|
I pointed this out to him in his original post.
|
|
|
|
|
Hello everybody! Here I want to ask a question: how to solve the problem of the management of computers in computer classrooms?
1. During computer classes, students’ random operation cause computers malfunction.
2. When we need to install software, we have to install software for every PC one by one.
3. When students need to do graduate design, they are not allowed to have private space in a PC.
Well, could you give me solution? Thanks!
|
|
|
|
|
If all the PC's are the same type, why not use Norton (Symantec) Ghost?
All you need to do is install software on one PC, then create a Ghost Image of that computer. Then use that image to re-image all the other computers in the class room.
It doesn't matter what the students do to their PC whilst in a class session, once it is finished run the multicast to re-image all the PC's and they are back to where you began before your students started "playing around" with the individual configurations. 
|
|
|
|
|
Where I teach:
1. Rarely happens although viruses are rampant.
2. Installing IDE's and other tools are part of the learning
3. Students are expected to backup to USB. They do have a docs folder on the network but this causes issues with most development IDE's
Having said that all the standard tools are installed by Admin as per department requirements. All machines are re-imaged every semester.
"You get that on the big jobs."
|
|
|
|
|
Every place I've been to wipes and reimages every workstation every night.
They do this using Ghost or some other imaging system and automated tools to install any software needed.
|
|
|
|
|
HI
I developed a windows form application using c#.and i created a .exe(setup) file.it is running in my system.i want to install on another system which does not contain sql server.i want to install sql server along with the .exe file.how to include sql server during setup creation.how to add my data base to the set up...please help.......
Thanks..
RAHUL
|
|
|
|
|
You can't. Due to licensing, you cannot ship the SQL Server setup in your own setup. It must be installed seperately, which you can get from SQL Server 2012 Express[^].
|
|
|
|
|
|
how to create data backup system code in vb.6.0
|
|
|
|
|
You're probably not going to get an answer to this for a few reason:
1) You haven't specified anything about what you're backing up.
2) You haven't specified anything about what you're backing up to.
3) You're using VB6. There is absolutely no valid reason at all to start new development work in VB6. It's dead and has been for years. VB.NET Express Edition is free and easily obtainable from here[^].
|
|
|
|
|
i want to copy the data that exists on a gridview column to another form 's listbox >>>>
can you help me
|
|
|
|
|
I would suggest using any type of loop (Do While, For Next etc), what ever you like to get the data from the DataGridView column.
Just get the number of rows you wish to copy then loop through the rows, either storing the data returned into the ListBox or populating an Array, which can then be used to fill the ListBox. Note in the example below data is returned from the first column.
Dim pInt As Integer
Dim pIntItems As Integer
Dim pStrValue as String (or what ever the value type of the column is)
pIntItems = DataGridView.RowCount
For pInt = 0 To pIntItems - 1
pStrValue = DataGridView.Rows(pInt).Cells(0).Value
"Now either store this value to an array or make a function call to start populating the ListBox with the value."
Next
Hope this helps
|
|
|
|
|
Hello,
1.Get all the data from gridview into some (public static)variables.
2.In the form where u want those values just write the form name of gridview values followed by the value property of list box.
EX. Form.Listboxproperty
thanks.
|
|
|
|
|
Hello,
I have 2 Buttons in my form. Both have background image and Flat style is "Flat".
1) On clicking TAB key, when the focus is on button, I see solid color rectangle inner, instead of solid border I want to have dotted border in the button.
2) If the button is on focus & the application loses focus (someother app is active), the button forms a outer border of white color. I want it to remain as it is i.e. dotted line inner rectangle.
3) When the button is clicked, some activity is going on. While this time the button text colro changes to grey. I don't want it to change the text color. I believe this is windows std property, but how do I not change the text color when the button is selected .
I can't find any properties to set these points. What should I do to achieve the goal. Any help is highly appreciated.
Thanks & Regards,
|
|
|
|
|
1. This is Windows drawing the focus cue on the button. You cannot change this.
2. Again, Windows. Can't change this.
3. The text turns grey only because your code has to change it. This isn't Windows doing this or a property on the control. When you click on Windows Forms Button, no colors of or inside the button change at all, unless your code is specifically written to do this.
[EDIT] 3. I haven't tested this, but this could be because of the Windows Desktop Theme your using.
|
|
|
|
|
Thanks Dave,
I created a custom Button and got rid of all the issues I had and got it the way I wanted it.
Thanks alot to all.
Thanks & Regards,
|
|
|
|
|
hi i am using vs.net 2010 c#
i am interested in creating a report builder and viewer in a window form such that user can customize the look and feel of the report.
does anyone have any idea how i can achieve this?. such as are there any readily available API or notable website i should know of.
any help will be welcomed.
|
|
|
|
|
There is no API in Windows or the .NET Framework to do this for you. It would be best if you just used a standard reporting package, like Crystal Reports or SQL Server Reporting Services to do this.
|
|
|
|
|
vs2010->new->file->report.
|
|
|
|
|
Hey guys im just looking for a few ideas of design for a nice windows form. I created a program that runs 250 tests based on different senarios and inserts the results into 7 different tables in the db. Now I want to create a form to show the results to the user. Im just drawing blanks on the design and what options the user should have. Thanks
|
|
|
|
|
- The user should be able to filter the data he/she is viewing.
250 tests might generate a lot of data, and the user is probably interested in something specific - like all of last weeks' tests.
- A gridview to visualize the data that the user selected
If it's a large set, virtualize your DataGridView .
- Show some charts
A nice pie cut into the amount of tests of that week, a graph telling how often a test failed.
- Reports
One that lists all the tests, one that lists all failed etc.
Hope this helps a bit
Bastard Programmer from Hell
|
|
|
|