Viewing 15 posts - 2,146 through 2,160 (of 3,481 total)
Could you post this in a new thread and post your table structure and some sample data? hard to tell without some details.
December 13, 2015 at 1:11 am
You're welcome. Post back if you get stuck.
December 13, 2015 at 1:10 am
Surfed around for a second and found this:
http://stackoverflow.com/questions/7542517/call-a-stored-procedure-with-parameter-in-c-sharp
then you'd just call the stored procedure that way.
Thanks for any help. BTW, EmailAddress is what I will be counting.
The code I provided...
December 13, 2015 at 12:07 am
This is one option.... kinda sloppy, but it works:
ALTER PROCEDURE uspAddEventParticipant
@ParticipantID INT,
@EventID INT
AS
BEGIN
SET NOCOUNT ON;
DECLARE @MaxEventsPerParticipant TINYINT = 2; -- just makes this a lot easier to modify...
IF (SELECT COUNT(*)...
December 12, 2015 at 11:12 pm
you could create a stored procedure to do the insert and prior to actually doing it, check the existing count of records for that user and cancel/not do the insert...
December 12, 2015 at 10:14 pm
To add to what Wendell said, there are several things you need to be aware of when using Access as a front end to SQL Server. To take advantage...
December 12, 2015 at 7:25 pm
I would check Paul Randal's blog for some ideas. Maybe start here: Troubleshooting Transaction Log Growth[/url]
December 12, 2015 at 1:05 pm
So far, no joy... I tried it. Works fine if the ToolTip has only a text value. Doesn't appear you can pass an image to it, though.
I...
December 11, 2015 at 11:24 pm
Oops... oh well, gotta leave something for the OP to do!!!
December 11, 2015 at 11:01 pm
Did i miss it, and this is in a report?
I tweaked your query to turn it into a stored procedure, just to make it easier to call in SSRS.
ALTER PROC...
December 11, 2015 at 9:57 pm
Without sample data, this is hard to answer. Care to share? Or did you already figure it out?
December 10, 2015 at 11:24 pm
LOL!!!! Well, no wonder I've been having such a rough go of it. Guess I gotta learn to program better, since I can't make the Aspergers go away... might...
December 10, 2015 at 5:20 pm
that would be too easy... it's LEN()
December 9, 2015 at 11:41 pm
You can shrink the database, but you'll need to rebuild all the indexes, because shrinking the DB makes a mess of the indexing.
December 9, 2015 at 3:12 pm
I can't claim to be an expert on the subject, but here's a good article by Itzik Ben-Gan that shows different ways to do it and the performance of each...
December 9, 2015 at 3:02 pm
Viewing 15 posts - 2,146 through 2,160 (of 3,481 total)