Viewing 15 posts - 496 through 510 (of 595 total)
I just saw that same error myself this morning. The cause seems totally unrelated to the error, however. A user executed a stored procedure that contained a TRUNCATE TABLE statement....
September 28, 2004 at 6:51 am
You don't say where the error is occurring. However, you have two procedures that don't check for the existance of at least 1 row following a SELECT statement:
Sub FillInGroupData()...
September 27, 2004 at 6:15 am
Many people have asked through this forum about a FORMAT() function. Unfortunately, you'll have to write your own. However, to get you started with the CONVERT() function, here are a...
September 24, 2004 at 9:27 am
By default, you cannot find the date of the most recent change.
I track the last date of change on a per row basis by adding a datetime column called 'dtchg'...
September 22, 2004 at 8:22 am
You could try using the DECIMAL datatype instead, although the internal storage requirements are much higher. Here's an example that maintains 4 decimal places. You can, of course, change that...
September 17, 2004 at 6:28 am
For mm/dd/yyyy format, use style 101:
SELECT Convert(varchar(10), GetDate(), 101)
September 16, 2004 at 6:33 am
SQL Server 6.5 does provide the CONVERT function. That function goes way back to early versions.
Anyway, try this example:
--drop table concatTest
create table concatTest
(
cid int,
myVarchar varchar(50),...
September 14, 2004 at 7:17 am
This code is a bit long, but should work as long as the HTML is each row is formatted as you previously specified. I think the key thing is that...
September 9, 2004 at 7:45 am
Maybe the following VB code will help. You could try to implement the FromHex and Encode functions in T-SQL.
The RFC for...
August 30, 2004 at 9:46 am
Look up BULK INSERT in Books Online. Make sure to read the section entitled "Copying Data From a Data File". About 3/4 of the way down that section it briefly...
August 27, 2004 at 6:21 am
How is the date being displayed? Through an application? That date format is not one of built-in formats, so maybe the appliction that is displaying the date is dropping the...
August 27, 2004 at 6:12 am
Jennifer,
Unfortunately, the only way I know of to accomplish what you want is to create the stored procedure in the master database, and begin the SP's name with 'sp_'. Then...
August 25, 2004 at 6:25 am
Why not just copy the table structure, without any data:
SELECT * INTO newtable FROM oldtable WHERE 1=2
Mike
August 12, 2004 at 1:09 pm
Kristin,
Try:
UPDATE records
SET chainpath = c.chainNumber
FROM records r JOIN chains c ON r.specimenID = c.specimenID
or, since the query is simple, just:
UPDATE records
SET chainpath = chains.chainNumber
FROM records JOIN chains ON...
August 11, 2004 at 8:10 am
This probably doesn't address your connection problem, but your query should be:
select count(*) from postcode where postcode LIKE 'CT31%'
Also, check this out:
August 11, 2004 at 7:35 am
Viewing 15 posts - 496 through 510 (of 595 total)