Viewing 15 posts - 2,911 through 2,925 (of 7,191 total)
In that case, this should also work. It has a very similar execution plan to Dave's. That's only for a very small table, though - your mileage may...
December 8, 2015 at 5:16 am
pwalter83 (12/8/2015)
Can somebody help on this please ?
Yes. Take the example given on that page and modify it with your table name, columns names and computation. Post...
December 8, 2015 at 4:53 am
ben.brugman (12/8/2015)
Is there a method to copy the a table where the 'timestamp' columns are not altered ?
Ben
Timestamp is deprecated - you should use rowversion instead. If you insist...
December 8, 2015 at 3:00 am
Does your table have a primary key constraint, please? I can't see a way of writing a robust query without one.
John
December 8, 2015 at 2:47 am
Have you considered merge replication?
John
December 7, 2015 at 9:48 am
Something like this?
SELECT * FROM Patients
WHERE @AsAtDate BETWEEN >= ToDate
AND @AsAtDate < LEAD(ToDate,1) OVER (PARTITION BY PatientID ORDER BY ToDate)
As Alan said, please provide full table DDL and sample data...
December 4, 2015 at 8:49 am
Type "application role" into your favourite search engine. The first few results will probably tell you all you need to know, but if there's anything in particular that you...
December 4, 2015 at 2:54 am
I don't know about forms, I'm afraid. But if you give SELECT access, the user can get to the data. Even if you secure the forms, he can...
December 4, 2015 at 2:40 am
Rami
I imagine this isn't what you're looking for, but I'm finding it difficult to understand your requirement. If a user can see the data in a table, he can...
December 4, 2015 at 2:15 am
If you add 1003 and 1004, you'll get 2007. If you want to preserve the two values, you'll need to do something like this:
Insert into Table1 values(1,1000);
Insert into Table1...
December 3, 2015 at 6:56 am
If you're doing it from a command line, use RunAs to run as a different user. I've a feeling that only works interactively, however - you'll need to investigate.
John
December 3, 2015 at 5:35 am
If you're scheduling a backup, you need to provide the password in the connection string - you can't pass it in interactively.
The error message isn't saying you don't have rights...
December 3, 2015 at 4:51 am
I've seen messages like this in connection with password expiration. I think it occurs when someone attempts to connect with a Windows login whose password has expired.
John
December 3, 2015 at 4:04 am
Stuart
You need to read about cross-database ownership chaining. Please post back if there's anything you still don't understand.
John
December 3, 2015 at 3:23 am
Mmmm, interesting. The documentation does say unequivocally that the database can't be moved. I've moved it in the past, though. Maybe it ought to say instead that...
December 2, 2015 at 3:28 am
Viewing 15 posts - 2,911 through 2,925 (of 7,191 total)