Viewing 15 posts - 47,896 through 47,910 (of 49,571 total)
I would recommend, rather than trying to write a single query, you write three seperate stored procs, and call the one that you need from the front end.
With a stored...
December 31, 2007 at 7:18 am
Please don't post multiple times for the same problem. It fragments replies and wastes people's time
December 31, 2007 at 7:15 am
For SQL 2005, the first exam you need to write is the Technical Specialist exam. After that, you'll probably want to do the IT Professional Database Developer Certification.
All the info...
December 31, 2007 at 7:09 am
Then run it in a loop a few thousand times, inserting into a table with an identity.
Is there any reason you refuse the first suggestion offered fo a particular problem...
December 31, 2007 at 3:39 am
Did he give you a reason why? Sound a bit strange.
Here's one that doesn't actually use replicate, but does the same thing as replicate would.
DECLARE @Length INT
SET @Length = 4
SELECT...
December 31, 2007 at 3:31 am
And please post the ASP code you're using to connect and submit query.
December 31, 2007 at 3:26 am
Cross join the table in a couple more times untill you have the number of rows you need.
December 31, 2007 at 3:23 am
karthikeyan (12/31/2007)
Yes, you are correct.But,how to perform this one without REPLICATE function ?
Why the restriction against replicate?
December 31, 2007 at 3:22 am
karthikeyan (12/31/2007)
Yes i do agree.I think your query(column 0) will use TableScan instead of Index.
Possibly, but if the requirement is that all rows other than where column=0 or...
December 31, 2007 at 3:21 am
karthikeyan (12/31/2007)
we need to write,
select * from sometable where column > 0
select * from sometable where...
December 31, 2007 at 2:44 am
I did see your post. And, no, you don't "need to execute SET ANSI_NULLS OFF.Otherwise the above statement will give wrong output."
I specifically wrote that to illustrate how nulls...
December 31, 2007 at 2:24 am
con.open "Provider=SQLOLEDB.1;Integrated Security=SSPI;Persist Security Info=False;Initial Catalog=Atab;
This connection string requires that the login has access to the DB Atab. If it doesn't, you'll get the error message you described earlier.
The second...
December 31, 2007 at 2:13 am
karthikeyan (12/31/2007)
WHERE Column2 IS NOT NULL
AND Column2 <> 0
So the Better way is,
Select * from sometable
where Column2 > 0
Will...
December 31, 2007 at 2:06 am
You missed the point.
NULL is not a value. It's a placeholder for 'unknown'. Because it is an unknown value, it is not equal to anything. It's not unequal to anything...
December 31, 2007 at 2:00 am
Viewing 15 posts - 47,896 through 47,910 (of 49,571 total)