Viewing 15 posts - 5,371 through 5,385 (of 5,393 total)
It would be interesting to know how he could delete a LDF file with the service running...
What's the database recovery model?
You could try to attach the database with a...
August 4, 2008 at 5:58 am
I think you should identify one of the rows you want to update and then print out the ascii code of each character in the field: maybe you'll find tabs...
August 4, 2008 at 4:01 am
su_kumar11 (8/4/2008)
Hi,I want to know that how to use Exists operator instead for below query
...
"select fname,lname,minit,job_lvl,job_id from employee where job_id in (1,2)"
Sunil....
I don't...
August 4, 2008 at 3:55 am
You could use a UNION statement if the tables have the same definition:
SELECT *
FROM (
SELECT *, 'Type1' AS CustomerType
FROM FirstTable
...
August 4, 2008 at 3:47 am
This is how I would do it:
1. Insert rows without duplicate id. You can find them using something like:
INSERT INTO destinationTable
SELECT *
FROM StageTable
WHERE id IN (
...
August 4, 2008 at 3:22 am
First of all I would say that the input should be checked in the application side, but, if you can't do it otherwise, you can check for conversion errors with...
August 4, 2008 at 3:06 am
Ok, so, let's convert it into SQL2000 syntax:
SELECT TOP 1 *
FROM (
SELECT TOP The_Row_You_Want *
FROM MyTable AS A
ORDER BY Column1 ASC
) AS DATA
ORDER BY Column1 DESC
There are...
August 4, 2008 at 1:17 am
Of course you can:
SELECT *
FROM (
SELECT *, ROW_NUMBER() OVER (ORDER BY Column1) AS ROW_NUM
FROM MyTable
) AS Data
WHERE ROW_NUM = @The_Row_You_Want
This works only...
August 4, 2008 at 12:55 am
Hugo Kornelis (7/24/2008)
Gianluca Sartori (7/24/2008)
July 24, 2008 at 3:33 am
I agree that this question was a bit confusing. I would never have chosen the "right" answer just because this is not any way to update the cursor, but the...
July 24, 2008 at 1:56 am
Try using INSTEAD OF triggers:
CREATE TABLE Test (
col1 int
)
GO
CREATE TRIGGER TR_TEST ON Test
INSTEAD OF DELETE
AS
BEGIN
DECLARE @pr int
SET @pr = 0
END
GO
INSERT INTO Test values(1)
SELECT * FROM Test
And you'll get:
col1
-----------...
July 23, 2008 at 1:04 am
Really excellent question!
Knowing nothing about XDM I tried to figure out what the storage sizes would be running this command:
SELECT datalength(@x)
SELECT datalength(@n)
The result was:
...
July 22, 2008 at 6:17 am
Can you post here the error message you're getting?
I would also need to know the options you set in the provider and linked server dialogs.
July 21, 2008 at 3:50 am
We've had much trouble with that provider, try Hit OLEDB/400.
Are you working with four-part names or openquery? It makes a big difference. If you're not able to query data...
July 21, 2008 at 2:05 am
Which OLEDB provider are you using?
July 21, 2008 at 1:50 am
Viewing 15 posts - 5,371 through 5,385 (of 5,393 total)