Viewing 15 posts - 406 through 420 (of 2,038 total)
It depends on your scripting options. If you select option "Include IF NOT EXISTS" you get this syntax because there is no other way to handle this for views, procs,...
July 11, 2009 at 4:33 am
Hi
I don't see anything missing in your trigger. Maybe you delete the data from EmployeeSkills table?
This shows that your trigger looks correct.
---========================================================
-- Some test table
CREATE TABLE TestTrigger
(
Id...
July 11, 2009 at 4:17 am
Sorry, forgot...
Jeff Moden (7/8/2009)
why did you think you needed a cursor for this problem?
I saw many guys using cursors. Most common reason was people have to write SQL statements who...
July 11, 2009 at 4:01 am
Jeff Moden (7/8/2009)
I am actually in the process of writing a book ...
Give me a hint when it becomes released, please. 🙂
July 11, 2009 at 3:53 am
Please keep in mind that those queries usually run into performance issues. It's a inline cursor using a triangular JOIN.
Search this site for "running totals" to find some other discussions.
July 11, 2009 at 3:50 am
As Lynn already wrote, use SQL Express 2008. Just have a look to it's restrictions like 4GB maximal database size.
Just one information, "Advanced" relates to the additional components like GUI...
July 11, 2009 at 3:46 am
Hi
You need at least two objects to get data from database:
* A SqlConnection which specifies the server and database
* A SqlDataAdapter which gets the connection and a statement or a...
July 11, 2009 at 3:42 am
Maybe, sometimes I think too big. 😉
Adding a search to a smaller web page isn't that hard. Replace all '*' with '%', add a trailing '%' and (if needed) a...
July 11, 2009 at 3:31 am
We had the same problem on your production server. Unfortunately I cannot explain the reason but you can use a workaround by creating a not named PK and DF constraint:
CREATE...
July 10, 2009 at 11:13 am
Since you wrote "another company" I would suggest a non database-specific format like CSV or XML. CSV is very compact, XML enables you to send structured data.
July 10, 2009 at 10:42 am
If you just need to handle the '*' wild-cards you can use something like this:
DECLARE @prods TABLE (Id INT IDENTITY, Name VARCHAR(100))
INSERT INTO @prods
...
July 10, 2009 at 10:18 am
Paul White (7/10/2009)
Florian Reischl (7/9/2009)
Here a little sample in C#
I would just add that one should map a parameter to the return value of the ExecuteNonQuery call and return that...
July 10, 2009 at 6:14 am
Glad I could help 🙂
No, you don't have the "using"-block affects an implicit Dispose() for your objects. SqlConnection.Dispose() automatically calls Close().
July 10, 2009 at 3:30 am
Bruce W Cassidy (7/9/2009)
Florian Reischl (7/9/2009)
Bruce W Cassidy (7/9/2009)
[font="Verdana"]Well, he is German, after all.[/font]No more translation needed. Just figured out.
Good night
[font="Verdana"]Sorry Flo. The implication being that you are German,...
July 10, 2009 at 3:23 am
Bruce W Cassidy (7/9/2009)
Paul White (7/9/2009)
floccinaucinihilipilificationAnyone else notice the first three letters of that verylongword?
[font="Verdana"]Well, he is German, after all.[/font]
No more translation needed. Just figured out.
Good night
July 9, 2009 at 4:59 pm
Viewing 15 posts - 406 through 420 (of 2,038 total)