Forum: ASP.NET Apr 3rd, 2009 |
| Replies: 10 Views: 1,487 What database are you using? OLE is slow but may be your only choice.
Also use a reader (forward only cursor) instead of a DataTable, it's faster for this kind of scenario.
But, consider the... |
Forum: ASP.NET Apr 3rd, 2009 |
| Replies: 4 Views: 757 greeny_1984: Well that would just exhibit the same behaviour as whats currently happening. But you're on the right track.
Image buttons are rendered as type="submit" which means when you press the... |
Forum: MS SQL Apr 3rd, 2009 |
| Replies: 2 Views: 697 Stored procedures need to be created using the CREATE PROCEDURE statement and then executed (F5 or the green play button in the toolbar). They are compiled and stored in the database itself. If you... |
Forum: Geeks' Lounge Mar 24th, 2009 |
| Replies: 600 Views: 44,771 I managed a couple of months over Christmas, but am smokin' again. Thinking I will never quit now. One more smoker in the world... again. |
Forum: Visual Basic 4 / 5 / 6 Dec 23rd, 2008 |
| Replies: 2 Views: 487 Hmm stinks of copyright theft. Tsk the ever more redundant web.... |
Forum: Geeks' Lounge Oct 20th, 2008 |
| Replies: 11 Views: 1,916 OMG, it took you over two years to improve by just 1% !!!! |
Forum: Database Design Sep 4th, 2008 |
| Replies: 3 Views: 4,198 |
Forum: Posting Games Aug 1st, 2008 |
| Replies: 634 Views: 53,339 county
mutiny
tummy
spiritually |
Forum: Posting Games Aug 1st, 2008 |
| Replies: 634 Views: 53,339 tendon
tenet
denote
toned
regulatory |
Forum: Posting Games Jul 31st, 2008 |
| Replies: 634 Views: 53,339 revise
veers
sieve
navigation |
Forum: VB.NET Jun 9th, 2008 |
| Replies: 3 Views: 3,112 I can help by saying wishful thinking is unlikely to get you very far. And neither will posting on the end of two year old threads.
I recommend you re-post in the correct Community Introduction... |
Forum: MS SQL May 27th, 2008 |
| Replies: 11 Views: 6,698 (Holyl is now bald as a coot)
I think EXEC @tsql needs to be EXEC(@tsql) with parenthesis.
and getting the error:-
The name 'ALTER TABLE [] ADD []' is not a valid identifier.
To me this... |
Forum: MS SQL May 27th, 2008 |
| Replies: 11 Views: 6,698 (Holly pulls his hair out ....) I see an important space disappeared in my second post! gah! ok use this:
Spot the difference:
--CORRECT CODE
SET @tsql = 'ALTER TABLE [' + @tablename + '] ADD... |
Forum: MS SQL May 23rd, 2008 |
| Replies: 11 Views: 6,698 The table must exist in the database.
Also you have now introduced spaces between the [ and the table name, you need to remove those, same for the column name unless you want lots of subtle bugs... |
Forum: MS SQL May 23rd, 2008 |
| Replies: 11 Views: 6,698 Here's a tip: amend the stored proc to select @tsql instead of EXEC(@tsl)
CREATE PROCEDURE sp_addcolumn
-- Add the parameters for the stored procedure here
@TABLE_NAME varchar(50) = 0, ... |
Forum: MS SQL May 23rd, 2008 |
| Replies: 11 Views: 6,698 Alter table can't take dynamic parameters. To do this you will have to concatenate the whole TSQL command as a string dynamically and then execute it. Also you don't need the COLUMN keyword.
... |
Forum: C# May 23rd, 2008 |
| Replies: 1 Views: 373 Put your terms into Google, read the links and try it out. I put 'c# myql' into google and first hit was this... |
Forum: DaniWeb Community Feedback May 23rd, 2008 |
| Replies: 127 Views: 13,623 We have that here too Jb (admittedly it's the exception to the rule) There's a great little private petrol station near me that fills your tank for you, but I rarely use it as their prices are higher... |
Forum: JavaScript / DHTML / AJAX May 22nd, 2008 |
| Replies: 11 Views: 1,745 Welcome to the crazeee world of browser incompatability :)
There is an ECMAScript standard (Ha ha ha ha laughs uncontrollably) which has been interpreted by browser creaters in a lot of different... |
Forum: Geeks' Lounge May 22nd, 2008 |
| Replies: 10 Views: 1,076 Google for programming blogs there's acres of material.
Steve Yegge (http://steve-yegge.blogspot.com) / Joel spolskey (http://joelonsoftware.com) and Jeff Atwood (http://codinghorror.com) are some... |
Forum: VB.NET May 22nd, 2008 |
| Replies: 1 Views: 534 You could wrap the C++ app as a plug-in.
Other than that... no not really.
Are you talking server-side ? |
Forum: MS SQL May 9th, 2008 |
| Replies: 6 Views: 1,391 It's late and I'm a little blurry. But from what I can see in your query I think this: tDocumentsA.user_id = tUsers.contact_id should be: tDocumentsA.user_id = tUsers.id (the same for all document... |
Forum: Geeks' Lounge Apr 30th, 2008 |
| Replies: 94 Views: 14,027 :icon_eek: Is this a trick question? |
Forum: DaniWeb Community Feedback Apr 29th, 2008 |
| Replies: 15 Views: 2,571 What? I don't think so. I may be wrong but I can't be bothered to look it up.
What I do know is:
- The Data Protection Act is grossly misunderstood in the UK.
- You are obliged to provide... |
Forum: Geeks' Lounge Apr 29th, 2008 |
| Replies: 94 Views: 14,027 No her body has been overtaken by a particularly nasty parasitic xenomorph from the lower quadrant of Andromeda, It's posting here to avert suspicion, but I know my LGM's :) |
Forum: IT Professionals' Lounge Apr 27th, 2008 |
| Replies: 21 Views: 2,637 This is quite a coincidence, because I have ended up with a new keyboard by accident this weekend. Let me explain.
I don't very often have to work overtime on a project (thank goodness) But every... |
Forum: Geeks' Lounge Apr 22nd, 2008 |
| Replies: 205 Views: 17,873 It depends on who your asking, relatively speaking. |
Forum: Geeks' Lounge Apr 18th, 2008 |
| Replies: 205 Views: 17,873 Why are the buses in Canada so weird ?
(I mean if Steven mistook the drawing for a retreating bus .... ) |
Forum: Geeks' Lounge Apr 18th, 2008 |
| Replies: 205 Views: 17,873 What bus? it looks more like a UFO to me :)
Why do we call it 'cracking' a window when it doesn't break? |
Forum: C# Apr 11th, 2008 |
| Replies: 10 Views: 1,088 Look into SqlLite (http://www.sqlite.org/) its free and simple and can be packaged with your app more easily. |
Forum: C# Mar 28th, 2008 |
| Replies: 23 Views: 19,940 It's just a preference. I like things to be as loosley coupled as possible. I prefer to bind to collections of objects, rather than strongly typed datasets. Like most things it depends on what your... |
Forum: C# Mar 27th, 2008 |
| Replies: 23 Views: 19,940 Oops perhaps you are doinf a Forms project not a web project.
I have started a forms project and I can't get the binding source to use the new query either yet. I am too tired at the moment.
... |
Forum: C# Mar 27th, 2008 |
| Replies: 23 Views: 19,940 The query has the single column you want 'Expr1' bind the textbox to that.
I am not very knowledgeable with BindingSources I am afraid, I don't like them. I prefer to have simple business objects.... |
Forum: C# Mar 26th, 2008 |
| Replies: 23 Views: 19,940 SELECT Name + '\n' + Street + '\n' + ZipCode +'\n' + City
FROM Customers
WHERE (CustomerID = @1)
This assumes none of the columns allow NULLS. Otherwise you will need to use ISNULL(name, '') +... |
Forum: ASP.NET Mar 14th, 2008 |
| Replies: 17 Views: 3,268 Aha, you are using a strongly typed DataTable.
You must be handling the DBNull somehow otherwise you would be getting an exception when populating the table.
Have you tried just == null ? |
Forum: ASP.NET Mar 14th, 2008 |
| Replies: 17 Views: 3,268 Hmm... well it works for me. You'll have to post some code or give more information. |
Forum: ASP.NET Mar 14th, 2008 |
| Replies: 9 Views: 3,734 Dont have the radio button in the control. Use a repeater to render radio button, user control pairs. |
Forum: ASP.NET Mar 14th, 2008 |
| Replies: 17 Views: 3,268 You need to compare the column value with System.DBNull.Value
So assuming a DataTable for example:
if( myDataTable.Rows[0]["someColumn"].Equals(System.DBNull.Value) )
{
//Handle... |
Forum: Geeks' Lounge Mar 14th, 2008 |
| Replies: 15 Views: 1,997 Do you have a welcome thread? If so I can't find it. |
Forum: Geeks' Lounge Mar 13th, 2008 |
| Replies: 15 Views: 1,997 I didn't, this thread originates from my birthday in 2007. But I didn't find it till the 30th of march that year.
A year passed and it got bumped again by Sullys Boo, for which I was super chuffed! |