Viewing 15 posts - 121 through 135 (of 310 total)
Surely, the real answer here is : dont use varchars for datetime if you are going to select on them. Add datetime columns if necessary and populate them with...
February 2, 2006 at 1:49 am
Dates are stored internally as numbers (zero is 1 January 1900, then count days with time being the decimal part) so the comparison actually is on a number range (and,...
February 1, 2006 at 6:09 am
I assume that the TabID is not sequential, otherwise you just could use BETWEEN. Can you create a surrogate key that is sequential?
January 19, 2006 at 2:04 am
It would return the latest address onli if the ids were sequential and not GUIDs or something else horrible ... and there's no guarantee that the latest is the correct...
January 6, 2006 at 9:21 am
See http://www.sqlservercentral.com/forums/shwmessage.aspx?forumid=169&messageid=248544 which is another example of the same requirement.
January 6, 2006 at 6:16 am
A crude (untested) solution would be :
SELECT c.*, a.* FROM Contacts c
JOIN AddressTable a ON a.AddressID = c.PersonID JOIN
(SELECT PersonID, MAX(AddressID) AS MaxAddress FROM AddressTable GROUP BY PersonID) dt
ON dt.MaxAddress...
January 6, 2006 at 6:12 am
I've had queries fail because I haven't set up the link or permissions correctly but never got results from the wrong server when using four part naming.
I assume that these...
December 15, 2005 at 1:46 am
I'm not entirely sure what is going on here. Could we see the stored procedure and the relevant VB, please?
December 9, 2005 at 4:23 am
Agree the 8k limit but he is getting chunks so I assume that this will be ok.
December 8, 2005 at 7:09 am
Forget ReadText. Just use SubString.
December 8, 2005 at 4:00 am
You say it stops or hangs. Does SQL batch actually finish and return partial results or is it in a wait state or locking problem? Although the message...
November 24, 2005 at 9:58 am
Is it timing out, either on SQL Server or on the ADO connection object (they are separate settings)?
November 24, 2005 at 8:37 am
Are you passing parameters into your stroed procedure? If so, are you sure that they are being passed correctly? Possibilities could be variable type mismatches, padding or ascii...
November 24, 2005 at 8:28 am
Is the first one throwing an exception and SQL Server doing its usual trick of a batch abort?
November 24, 2005 at 4:44 am
Viewing 15 posts - 121 through 135 (of 310 total)