Viewing 15 posts - 6,346 through 6,360 (of 7,191 total)
As far as I know, that isn't allowed. Something like this should work:
DECLARE
@name SYSNAME
SELECT
@name
August 10, 2007 at 2:40 am
Truncate a table, or truncate the transaction log? There's information about both of these in Books Online.
John
August 9, 2007 at 9:12 am
Does your stored procedure have parameters, and if so, are you passing different parameters in the second time? It's always helpful if you post your code, by the way.
John
August 9, 2007 at 7:52 am
August 9, 2007 at 6:53 am
Chris
I think the answer is "just because". sa has fixed permissions and therefore you can't add it to or remove it from fixed server roles, hence the error message.
John
August 9, 2007 at 6:22 am
Chris
Yes, sa can perform any task that a member of security admin can (and more). Mind you if your thrid party product requires the sa account, then it's probably time...
August 9, 2007 at 4:16 am
Torben
Do you mean enter the credentials in the same way as a SQL login? I don't think that's possible.
John
August 8, 2007 at 5:02 am
Torben
Right-click on your Query Analyzer icon and choose Run As. You can then enter the security details for the account you want to connect as.
John
August 7, 2007 at 6:08 am
Thomas
You could do it in one statement using dynamic SQL, but I think it's more elegant to do it like I've done below. Why do you prefer the single query...
August 7, 2007 at 4:38 am
Marie-Sofie
Does this get you any closer? I've left it to you to do the manipulation of the figures. Obviously it's not tested since there was no sample data, and performance...
July 31, 2007 at 9:49 am
Andrew
From Books Online:
ALTER INDEX cannot be used to repartition an index or move it to a different filegroup. This statement cannot be used to modify the index definition, such as...
July 31, 2007 at 8:41 am
Delete the data in the child table that references the data you want to delete from the parent table. Then you will be able to delete the parent data. Alternatively,...
July 31, 2007 at 3:53 am
Ben
Can you adapt this example from Books Online to work in your environment?
John
USE AdventureWorks; GO SELECT c.FirstName, c.LastName ,ROW_NUMBER() OVER (PARTITION BY PostalCode ORDER BY SalesYTD...
June 21, 2007 at 9:38 am
Ben
I think the ROW_NUMBER function is exactly what you're looking for here.
John
June 21, 2007 at 9:10 am
Viewing 15 posts - 6,346 through 6,360 (of 7,191 total)