Viewing 15 posts - 10,771 through 10,785 (of 13,462 total)
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
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,...
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...
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...
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...
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...
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' ...
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...
July 22, 2009 at 3:25 pm
Viewing 15 posts - 10,771 through 10,785 (of 13,462 total)