Viewing 15 posts - 796 through 810 (of 920 total)
If cpindex is a biging, you shouldn't have to convert it.
CREATE PROCEDURE dbo.viewReport
@myStaff nvarchar (50),
@myCoalition nvarchar (50)
AS
DECLARE @mainID bigint
DECLARE @secondaryID bigint
SELECT @mainid = CPIndex FROM CoalPol WHERE Staff=@myStaff...
November 7, 2005 at 11:49 am
I'm not really clear on what you're trying to do, but your convert isn't converting cpindex, it's trying to convert the string you've given it as the second argument.
Try:
CREATE PROCEDURE...
November 7, 2005 at 11:27 am
Size isn't the determiner of where data should go. If the data you want to add relates to the primary key of the base table, the whole primary key, and...
November 4, 2005 at 5:56 pm
Hmmm, best practice is to keep DBMS and web server on different boxes. It's possible that you're having memory contention problems and that cycling the SQL Server frees things up,...
November 4, 2005 at 11:19 am
Are the web server and the SQL Server on the same box? Can you run profiler while this is going on and trace the sql being sent to the server? ...
November 4, 2005 at 10:05 am
Performance tuning for a SQL DBMS involves a lot of other activities and analysis. In my experience, most performance problems revolve around the SQL being used and the way the...
November 4, 2005 at 9:26 am
DBArtisan and RapidSQL from Embarcadero both analyse dependencies when creating scripts. They're nice tools, but pretty pricey.
November 3, 2005 at 3:16 pm
Try:
IF @AndOr = 'Or'
BEGIN
INSERT INTO #AndOr blah blah blah
SELECT blah blah blah
FROM blah blah blah
WHERE blah blah blah
ORDER BY blah blah blah
INSERT INTO #AndOr blah blah blah
SELECT blah blah blah
FROM blah blah...
November 3, 2005 at 2:49 pm
DBMS servers love memory. SQL Server (and most others) will take all they can get as soon as they can use it. Unless you specifically set the max memory, SQL...
November 3, 2005 at 2:46 pm
Hmmm, the only thing another table might give you is more granular security, but you can accomplish the same effect by insulating direct access to the underlying table through views. ...
November 2, 2005 at 3:46 pm
What business rule should the design support? Can the customer only have one credit card?
Without the business rules and the data, it's tough to guess whether any particular design...
November 2, 2005 at 3:32 pm
Sometimes it just takes another pair of eyes. We've all stared at a non-functional piece of t-sql and missed the obvious. It keeps us all humble.
October 27, 2005 at 11:51 am
There's no 'BEGIN' to match the 'END'. What do you expect the 'END' to be 'ending'?
October 27, 2005 at 11:19 am
Why not stick the part numbers to be queried in a temp table and make it a 4 table join?
October 24, 2005 at 4:17 pm
If memory contention is really the problem, you might try setting the max memory size for the sql server to a value low enough to leave some room for IIS. ...
October 7, 2005 at 4:01 pm
Viewing 15 posts - 796 through 810 (of 920 total)