Viewing 15 posts - 1,636 through 1,650 (of 1,999 total)
just a though. you're using labels to show this data - not text boxes?
but i'm guessing since you're getting #name thats not the problem.
looking at it though - you're using...
May 12, 2006 at 8:39 am
use a union query
select cutomer_id,max(orderdate) from mytable group by customer_id
UNION
select customer_id,max(orderdate) from mytable where custorders.id not in
(select id from custorders where ..........
May 12, 2006 at 8:01 am
i always use convert(varchar(11),getdate()) to put the value out in a real date format.
then convert it back to datetime
hence
select convert(datetime(convert(nvarchar(11),getdate()))
returns '12-may-2006 00:00:00'
May 12, 2006 at 7:56 am
not sure if this is right - but you might have to use
dim param1 as NEW adodb.parameter
although after a beer at lunch i'm not sure
May 12, 2006 at 7:51 am
is the login a member of builtin/administrators?
if the service is failed over on node 1 where your user login is a member of local admins, but not a member of...
May 12, 2006 at 7:47 am
depends on the table structure
but normally for the 1st 100
select top 100 * from mytable order by dateadded
then for the second 100
select top 100 * from mytable where...
May 12, 2006 at 7:42 am
I have to say that i think i agree with your developers.
this seems to be very open to interpretation, but i think that if you have table values that are...
May 12, 2006 at 7:35 am
which hotfixes?
i think 2162 was withdrawn for a few months and then replaced because it was faulty.
May 12, 2006 at 2:40 am
exactly right.
always always enforce referential integrity through the db. if your app fails because of DRI then its not a good app
mostly developers don't use foreign keys and constraints because...
May 5, 2006 at 5:36 am
yes you can
but it will usually end in someone crying
the sql server will also protect it from executing endlessley and will stop it at the nesting level set...
May 5, 2006 at 5:22 am
i just tested it as i've not seen these scripts before and have no problems at all - no x required.
are you using the revised version posted most recently?
other than...
May 3, 2006 at 3:40 am
select * from table1 where field1 like N'% %'
you could also do something like
select * from mytable where field1ltrim(rtrim(field1)
but this would be very bad against large tables
also
select * from...
May 3, 2006 at 3:31 am
create proc myproc @unit nvarchar(10)=NULL,@invdate datetime=NULL,@invno nvarchar(10)=NULL
as
declare @strsql nvarchar(1000)
set @strsql='select * from mytable where 1=1 '
if @unit is not null
begin
set @strsql=@strsql+' and unit='''+@unit+''''
end
if @invno is not null
begin
...
May 3, 2006 at 3:25 am
i do agree with the other guys here - set based is always best but sometimes you don't have a choice
the only way i can see you doing this is...
May 3, 2006 at 3:06 am
you might be able to find a lot of this information (and more) by downloading sqldiagnostic manager from idera.com
there's a 28 day free trial and it's about £600 ($1000) per...
May 3, 2006 at 2:12 am
Viewing 15 posts - 1,636 through 1,650 (of 1,999 total)