Viewing 15 posts - 10,771 through 10,785 (of 13,469 total)
running profiler to create a trace is resource intensive, but a server side trace has minimal impact, and can help track down your deletes. search for trace on this site,...
July 25, 2009 at 3:40 am
still not clear to me either, can you give a non-pseudo code, concrete example of the expected results?
July 24, 2009 at 4:54 pm
isn't Crystal still client-server based, so you have to install Crystal on every machine that will run a report, vs SSRS which is a web server HTML based reporting system?...
July 24, 2009 at 11:10 am
two single quotes in a row are the "escape" sequence to insert into a quote delimited string:
SET @sqlquery = 'UPDATE Allotuser SET ' + QUOTENAME(@accno) + '=''' + @acc +...
July 24, 2009 at 9:55 am
a rewrite of your proc to have better error messaging:
ALTER PROCEDURE [dbo].[USP_UpdateAllotUser]
(
@accno NVARCHAR(5),
@acc NVARCHAR(50),
@userid NVARCHAR(50)
)
AS
BEGIN
SET NOCOUNT ON
BEGIN TRY
IF (@accno '' OR...
July 24, 2009 at 9:26 am
ahh now i see; it's kind of obvious.
best practice is to always print your sql before you execute it:
this is the SQl statement your code creates:
UPDATE Allotuser SET ([Acc5])=hello where...
July 24, 2009 at 9:20 am
oops... researching now...what was the erro message specifically...error numbers not much help.
July 24, 2009 at 9:13 am
i just connected to a SQL 2000 instance and ran this code without errors; it returned the expected value; i don't have a SQL7 instance anymore.
select @@version = Microsoft SQL...
July 24, 2009 at 9:09 am
also, i'm rewringing the sql to have proper ANSi joins, and I do not see any relationship for the aliased table APMA:
select distinct
[User],
[Transaction],
...
July 24, 2009 at 8:36 am
lots of possible improvements i think are possible.
first, you can get rid of the cursor. that will be a massive improvement.
to help, we need a few things to get a...
July 24, 2009 at 8:30 am
it sounds like you have two issues;
first issue, if you have trailing spaces that won't go away,
I'm thinking that the table wce_ilr has two columns Student_Forename and Surname with a...
July 24, 2009 at 6:36 am
head_contusion (7/23/2009)
July 23, 2009 at 11:33 am
here is a specific example with a specific version of a Split() function:
note it returns a table.
Declare @MyString varchar(max)
Set @MyString = 'Amanda,Devin,Sydnee,Valery,Gloria,Cecelia,Caroline,Estevan'
select * from dbo.split(@MyString,',')
--another example
select * from firstnames where...
July 23, 2009 at 9:07 am
i've been in the same situation that you are in; the lead programmer only believed that the data was right if he KNEW each row was handled.
For the first couple...
July 23, 2009 at 8:35 am
it's just syntax; when you need to update and join on a table, you need an alias and an xplicit FROM:
declare @CustomerList varchar(max)
Set @CustomerList='IBM,Dell,Google'
UPDATE MyAlias
SET Delivered= 1
From purchases MyAlias...
July 23, 2009 at 7:53 am
Viewing 15 posts - 10,771 through 10,785 (of 13,469 total)