Viewing 15 posts - 10,771 through 10,785 (of 13,460 total)
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...
Lowell
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...
Lowell
July 24, 2009 at 6:36 am
head_contusion (7/23/2009)
Lowell
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...
Lowell
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...
Lowell
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...
Lowell
July 23, 2009 at 7:53 am
bmoynihan way to go for posting the CREATE TABLE and INSERT INTO statements! you are providing a great example for others to emulate! Thank you!
i came late to the party,...
Lowell
July 23, 2009 at 7:28 am
computer forensic investigator KEWL;
obviously I don't need to tell you to only perform work on copies of the mdf and ldf files.
i would definitely grab a trial version of a...
Lowell
July 23, 2009 at 6:59 am
i read the requirement a bit different; that the table in question had to have two specific column names in it to build the sql: I added a where...
Lowell
July 23, 2009 at 5:19 am
this is a very common requirement; what you want to do is search the scripts section for the "split" function, there's several version out there, all can do what you...
Lowell
July 22, 2009 at 7:59 pm
i rewrote your query to use the standard INNER JOIN syntax, but I'm confused a bit about the subquery to get the count from LessOrder
take a look at this and...
Lowell
July 22, 2009 at 7:52 pm
CREATE TABLE #WHATEVER(
BranchID int,
ClientID int,
ClientActivity varchar(30) )
-------------------------------------
INSERT INTO #WHATEVER
SELECT 1, 135,'Open Account' UNION ALL
SELECT 1, 135,'deposit' ...
Lowell
July 22, 2009 at 7:42 pm
each login could connect to your database an unlimited number of timse; as an example, if you've ever had two or more queries going on in SSMS, each "page" has...
Lowell
July 22, 2009 at 3:25 pm
I need to do more research on some of the log applications and how they work, but I was always under the impression that they use a live database to...
Lowell
July 22, 2009 at 10:25 am
Sample value before attack:
101 main street
Same field now:
I need to know how to remove the from the thousands of affected rows without losing the...
Lowell
July 22, 2009 at 10:05 am
Viewing 15 posts - 10,771 through 10,785 (of 13,460 total)