Viewing 10 posts - 1 through 10 (of 10 total)
Yes, the not exists criteria within the query seems to work. Don't know why I didn't consider doing that...thanks guys!
November 9, 2004 at 2:53 pm
this works:
SET QUOTED_IDENTIFIER OFF
GO
Create table #a1 (a varchar(3000))
insert into #a1 values ("This is Soumil's laptop")
select * from #a1
April 29, 2003 at 12:34 pm
CORRECTION: criteria should be >1 not >2
SELECT COUNT(City) AS howmany, City
FROM Customers
GROUP BY City
HAVING (COUNT(City) > 1)
April 22, 2003 at 2:18 pm
if you also want to know how many times they occur you can use a group by query:
SELECT COUNT(City) AS howmany, City
FROM ...
April 22, 2003 at 1:54 pm
that is strange because if you specify a column that does not exist on a table that does it will not compile
hmmmmmmm!
April 17, 2003 at 1:39 pm
concatenating does not work (not using xp_sendmail)
code is :
EXEC @hr = sp_OASetProperty @iMsg, 'HTMLBody', @Body
this doesn't work:
EXEC @hr = sp_OASetProperty @iMsg, 'HTMLBody', @Body...
April 11, 2003 at 9:04 am
in case anyone is wondering the answer is: path needs to be relative to the server and not the local machine. can be on another machine but it...
January 2, 2003 at 12:09 pm
Andy, I would like to use integrated nt security though so I don't have to save the password. Here is my connect string:
data source=DBSERV2;initial catalog=PELDMS;integrated security=SSPI;persist security info=False;workstation id=DTHOMPSON02;packet size=4096
...
September 13, 2002 at 9:39 am
I think I figured it out. Instead of the NT login, I used a specific login and password and had to allow password saving.
thanks
September 13, 2002 at 8:50 am
thanks gregory, but my table has more than one column in its primary key
September 10, 2002 at 10:13 am
Viewing 10 posts - 1 through 10 (of 10 total)